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

How to find gradients of weights and bias of multilayer neural network?

Hi, I am trying to display gradients of weights and biases in each layer of a multi layer network as below: f = rand(2,10) y = rand(10) dims = [2, 4, 2, 1] layers = [Dense(dims[i], dims[i+1],...

View Article


How does AbstractFloat[1.0f0] work?

In the blog post Tutorial on precompilation there is a line cabs = AbstractFloat[1.0f0] . While trying to understand the syntax I found one case in the documentation, in the section Conversion there...

View Article


Getting started with DrWatson.jl

I’m using the scientific project managing package DrWatson which makes it easy to share code and make it run on different machines since it not only sets up a pre-designed project folder structure but...

View Article

Arbitrary Precision BesselK (ArbNumerics.jl)

Hello! I am fairly new to Julia and have been working with ArbNumerics.jl BesselK function as part of evaluating a complicated response function that can be expanded in a series of BesselK functions....

View Article

Image may be NSFW.
Clik here to view.

Tiny Plots in jupyter-notebook

I have installed the 1.5.3 version of Julia and now all jupyter-notebook plots are tiny. Can anybody help me? Tiny Plots626×507 12.2 KB 4 posts - 3 participants Read full topic

View Article


Can't install IJulia after re-installing Julia to run Julia through Jupyter...

Hey! how are you guys doing? I’m dealing with a rather obnoxious problem. I want to run Julia through Jupyter notebooks, I’ve Windows 10 and Python (through Anaconda suite) and as I was dealing with...

View Article

Easier way to load package I'm developing?

Hi, new to Julia. I have this package I want to develop which for the sake of example we’ll call myPkg. It’s located in ~/.julia/dev/myPkg and I’ve used PkgTemplates.jl to set up properly. I’m using...

View Article

Writing data from Julia to an Excel Spreadsheet

Hi, I am having some issues with exporting data to excel, using the XLSX package. In my Julia script I have a loop (I = 9000) whereby at each step (value oof i) I need to write out a vector y (130...

View Article


Intersect of 2 arrays

I have 2 arrays of Dict containing from and to items, both of type ZonedDateTime (although for our example they could be integers, doesn’t matter). They are basically 2 arrays of ranges. What would be...

View Article


Type of Array of NamedTuples with same names but different tuples

I want to write a function that iterates over arrays of named tuples. In particular, I want to write a map reduce that pulls the names up to the highest level: function...

View Article

DelimitedFiles reading everything in one column

Hi! I am trying to read a csv file in Julia using readdlm. When I do this, readdlm wraps each row in my csv in a quote, and thus, ignores the \t column delimiters. Each row of the Matrix looks like...

View Article

How to load the values returned by callback functions (defined in a Julia...

I am trying to wrap ngspice_jll.jl And have generated wrapper functions to sharedspice.h file. A typical function has pointers to callback functions as arguments. Initialization looks like: function...

View Article

Strip one element off the end of a `OneTo` (or `UnitRange`)

Say that I have the following pseudo-code: for i in 1:length(array)-1 array[i+1] = some_function(array[i]) end Now I want to rewrite the loop using eachindex instead of 1:length (because it is...

View Article


Macro problem

I would like to compute the first n digits of some number x in base b. This looks like a job for a macro since the argument should be evaluated only after the precision has been set. macro numbers(x,...

View Article

Comparing tuples with and without parentheses

I’m a bit confused about the rules concerning tuples, parentheses, commas, and how Julia interprets them. Could someone explain to me the following behavior? julia> (1.0, 2.0) == (1.0, 2.0) # Nice...

View Article


Question on lazy map function

Can anyone please point me to overview of using (maybe different kinds) of map/reduce/filter functions in Julia (and it’s standard packages)? Here is is what I’m missing now: I want any(map(x -> x...

View Article

Where should I save Julia in the Linux Tree?

Thanks so, is this what I do if I want to try 1.6 ? wget https://julialang-s3.julialang.org/bin/linux/x64/1.6.0/julia-1.6.0-beta1-linux-x86_64.tar.gz tar zxvf julia-1.6.0-beta1-linux-x86_64.tar.gz 3...

View Article


Questions related to DrWatson

Hi, I just discovered the DrWatson package and I’m curious to see if I could use that in the future (to replace my “custom” package, which works OK until now but is not really...

View Article

Uniformly set floating point sig digits in a code

Hello guys, I am using Julia for scientific computation and would like to know if there is a way to set the significant digits of all floating point variables in the code to a specified value. I know...

View Article

Tensor operations with AbstractArrays

I’m looking after a way of doing the following operation. Here is an attempt using TensorCast.jl: using TensorCast # dummy data to simplify the example n = 7 D = rand(n, n) G = rand(7, 7, 7, 7) @cast...

View Article
Browsing all 2795 articles
Browse latest View live