Zygote hessian
@jacob-roth wrote: I’m trying to use Zygote to compute a simple Hessian. What am I doing wrong? using Zygote p = 0 function ϕ(x, p) return sum( x.^2 ) end gϕ = x -> Zygote.gradient(xx->ϕ(xx,p),...
View ArticleMetaprogramming using Meta.parse + eval
@terdmann wrote: Here’s an example of what I am trying to do: src = ["function f(x) x^2 end", "function f(x) x^3 end", "function f(x) x^4 end"] for s in src eval(Meta.parse(s)) @show f(2) end This...
View ArticleError when installing iJulia on linux system
@diepreye_ayabina wrote: Hello, I have been getting this error when I try to open a notebook, i.e I have installed Julia and IJulia but when I type notebook() it asks to install Jupyter via Conda, to...
View ArticleCreating a function that only takes specific units
@snowgum wrote: I’m new to Julia and currently trying to use Unitful.jl to create a function that only accepts arguments of a particular type of unit dimension, for example only length. Ideally, the...
View ArticleFor some reason a file that I am including is simply not getting loaded
@samantp wrote: I am trying to load a model using the ONNX package and have posted this as an issue on github here:https://github.com/FluxML/ONNX.jl/issues/36 In short, I am trying to include a file...
View ArticleConverting a Array of strings to an Array of Char
@floriano wrote: I have an input similar like this: a = ["123"; "456"; "abc"] display(a) 3-element Array{String,1}: "123" "456" "abc" I want to convert it to something like this: 3×3 Array{Char,2}:...
View ArticleWhere to define type aliases within a module's hierarchy
@mkarikom wrote: Is there a guideline on where to put type aliases in a module with multiple source files? Posts: 1 Participants: 1 Read full topic
View ArticleHow to retrieve global variable in C
@nnn wrote: I want to retrieve global variable x I just set in Julia from my C application. Here’s the code I have so far: #include <julia.h> void SimpleExecute(char *command, char *resultVar,...
View ArticleEntering xlsx columns into HypothosisTests
@brett_knoss wrote: I’m trying to do Chi Squared tests to variables to variables in a dataframe, from an xlsx file. When I use describe() I get a table: ────┼─────────┼──────────┼──────────┤ │ 1 │ Q1...
View ArticleInvalid redefinition of constant model
@Eldho.Ashna wrote: Hi everyone. I’m new to JUlia programming language. I was trying to create my own model for MNIST classification using Flux. Below is my code: model = Chain( Conv((2,2), 1=>16,...
View ArticleClear results displays in Atom
@squirrel wrote: Is there a way of clearing all of these displayed results in Atom? Doing ctrl + shift + enter will clear them, but it will also run all of the code in the file. Posts: 3 Participants:...
View ArticleHow to read in really big integers
@lesshaste wrote: I am trying to read in a file such as http://paste.ubuntu.com/p/pxmwPXkNNk/.The list of integers should go into an array. I have learned (How to read in a list of integers into an...
View ArticleProblem to start Julia in Atom
@Ujku_KU wrote: Hi guys. I am new to Julia and Atom. Recently I experienced problems with Atom while running some Julia code. Hence I had to reinstall form the begging either Julia and Atom. I was...
View ArticleOptical character recognition using JUlia
@Eldho.Ashna wrote: Hi all, I am new to julia programming language and would like to do optical character recognition using Julia. I know that there are different libraries for machine learning such...
View ArticleOutdated example for Plots'"surface" command
@TheLateKronos wrote: When I type “?surface” into the REPL, I get the following: ... Example ≡≡≡≡≡≡≡≡≡ julia> x = y = range(-3, 3, length = 100) julia> surface(x, y, (x, y) -> sinc(norm([x,...
View ArticleError on package registration: ERROR: Tag with a different commit already...
@paalon wrote: I am trying to register my package https://github.com/Paalon/Waveforms.jl/tree/v0.1.0 to General, but I can’t understand the meaning of this registering error: ERROR: Tag with a...
View ArticleAudio processing in Julia
@minifdez11 wrote: Hi, I want to make some operations with an mp3 file or WAV file, like splitting, but idk how to make it in Julia, i saw that the pkgs LibSndFile.jl, AudioIO.jl and WAV.jl don’t work...
View ArticleInstalling packages leads to crash
@soylentgreeen202 wrote: Hello, I just installed Julia for the first time but am unable to install any packages. I am running Julia 1.3 on Arch linux. edit: it looks like upgrading from http-parser...
View ArticleMultidimensional linear interpolation
@jacob-roth wrote: I have some 2D Array data x that I want to (linearly) interpolate along a single vector a uniformly in each dimension (with the Interpolations package). An example is below: using...
View Article3d array Literal
@Sijun wrote: In C, 3d array literal is written as int arr[3][3][3]= { { {11, 12, 13}, {14, 15, 16}, {17, 18, 19} }, { {21, 22, 23}, {24, 25, 26}, {27, 28, 29} }, { {31, 32, 33}, {34, 35, 36}, {37,...
View Article