Quantcast
Channel: First steps - JuliaLang
Browsing all 2795 articles
Browse latest View live

Flux relu fails with CUDA gpu

I’m getting error “CuArray only supports bits types” when using relu in code like: model = Chain(Dense(2, 2, relu), Dense(2, 1, identity)) |> gpu All works fine though with: model = Chain(Dense(2,...

View Article


Plotting fails silently?

I have a fresh install of Julia(on Catalina), with Plots added via Pkg. Then I try to plot a simple line: using Plots; println("imported") x = 1:10; y = rand(10); # These are the plotting data...

View Article


No strict ticks found - Plot

Hello! So, my goal with this code is to plot the BR COVID-19 data with a logaritmic scale in y axis. The problem is, it keeps saying that there is an Argument Error and at least one finite value must...

View Article

Image may be NSFW.
Clik here to view.

3d histogram plot with PGFPlotsX and StatsBase

Hi, I would like to do something similiar like this with PGFPlotsX. I´m a newbie in plotting with PGFPlotsX. I tried to it analogously like the example. kristofferc.github.io 3d_waterfall.pdf 62.72 KB...

View Article

Image may be NSFW.
Clik here to view.

Histogram of image pixel intensities and the density of a particular intensity

What I am trying to do: sphx_glr_plot_equalize_001800×500 95.3 KB What I able to do as of now: Screenshot from 2020-11-01 21-15-44866×840 58.9 KB I know the layout thing,pls help with the fraction...

View Article


How do I find which module exported a given method or variable?

How do I find which module exported a given method or variable? Background: I have a script MyScript.jl which works I made MyModule that encapsulates some of it’s functions, and call them from...

View Article

Broadcast [possibly missing] key value pairs from one Dict to another?

How can I broadcast key value pairs from one Dict to another, whether or not they exist? Tried the following but it doesn’t work: check = Dict() check2 = Dict(:a=>1,:b=>"b")...

View Article

Simple for loop woth if condition in Julia

I’m trying to implement the following: res = 0.0 res0= 0.0 for i = 1:10 res = 0.5^i if i==1 res0 = copy(res) end res = copy(res)/res0 println(res) end but when I run it I get the following error: 1.0...

View Article


Music Generation with Char_rnn

Hey,Anyone tried their hands with music generation with ABC Notation using Char-RNN based on Andrej-Karparthy original code which has been ported to Julia?? 1 post - 1 participant Read full topic

View Article


Dot Macro Broadcasting and complex values

Dear Julians, I observed some inconsistent behavior with the @. dot macro which drove me mad in the last hours. Please see my code below. using FFTW fs = 16.0 dt = 1.0/fs N = 1024 t = 0:dt:(N-1)*dt y...

View Article

Dropping rows from DataFrame

I have a DataFrame read in from a json file, and the first step it to select just a few columns and then strip out any rows where one of the columns (a string) starts with ‘<’. I have tried a...

View Article

IJulia (not found in project or manifest)

Hi all That is the very first time I try to use Julia. I already have a Anaconda Python v3 distribution (Windows 10) installed on my pc and I want to integrate it with Julia This is what I have done...

View Article

Image may be NSFW.
Clik here to view.

Fail to building julia

image678×698 10.9 KB git clone is pass, but running ‘make’ isn’t. note: i’ve installed required dependencies 1 post - 1 participant Read full topic

View Article


ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS

I was trying to add a package and got this error. ERROR: ArgumentError: Unsupported architecture ‘aarch64’ for macOS However, I’m on a Windows machine - do not understand it. 8 posts - 4 participants...

View Article

Converting string to DateTime in DataFrame

I’m reading in a json file, putting it into DataFrames to clean it up, before dumping into MongoDB (via mongoc). It is almost there, my only problem is that one of the fields is a timestamp, which is...

View Article


Help with Genie

I am really new(like 30 minutes new) to web developement in julia,what is that I am messing up in this part?? ashwani@ashwani:~$ julia _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_)...

View Article

How to consume data from generator expression

Hi all, I’m using Julia 1.5.2 and Combinatorics v1.0.2. I tried the following combinatorics exercise. First level: Get all combinations selecting 4 elements out of 8 available elements, without...

View Article


Problems in installing package MAT

Hi I am trying to download the package MAT in Julia 0.64 with the command Pkg.add(“MAT”) I did it other times in other PC with no issues but this time is giving me the following error: ERROR:...

View Article

Create variables in a loop

Suppose I wanna create some routine econ variables: using FredData; const f = Fred("Personal api_key"); # d = get_data(f, "GDP"); y=d.df[:,4] d = get_data(f, "PCEC"); c=d.df[:,4] d = get_data(f,...

View Article

How can I create a DataFrame with many columns programatically?

If I want to create a DataFrame with just 2 columns I can do: DataFrame(a=rand(Normal(0, 1), 10), b=rand(Normal(0, 1), 10)) But what if I want to create a DataFrame with hundreds or thousands of...

View Article
Browsing all 2795 articles
Browse latest View live