# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1947

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1948

---

## [Flux error: Loss is NaN](https://discourse.julialang.org/t/flux-error-loss-is-nan/27135)

<div class="topic-metadata">

**Author:** [@crsl4](https://discourse.julialang.org/u/crsl4)\
**Replies:** 5\
**Last updated:** [August 4, 2019, 1:01am UTC](https://discourse.julialang.org/t/flux-error-loss-is-nan/27135 "2019-08-04T01:01:10Z")

</div>

I am trying to use Flux for the first time on my dataset. I am using iris.jl as a starting point, just adapting slightly to my dataset. I always get the error of loss is NaN, regardless of the loss function that I choos…

---

## [How to construct a dataframe of dataframes](https://discourse.julialang.org/t/how-to-construct-a-dataframe-of-dataframes/27141)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 2\
**Last updated:** [August 4, 2019, 12:45am UTC](https://discourse.julialang.org/t/how-to-construct-a-dataframe-of-dataframes/27141 "2019-08-04T00:45:17Z")

</div>

Say, I was trying to create a 3-d Dataframe, but seems like Dataframes can only be 2-d. Someone suggested I create “Dataframe of Dataframes”, where each entry of a Dataframe is itself a dataframe. I was not sure how to d…

---

## [Error with building NLexpression in JuMP 0.19.2](https://discourse.julialang.org/t/error-with-building-nlexpression-in-jump-0-19-2/26998)

<div class="topic-metadata">

**Author:** [@pulsipher](https://discourse.julialang.org/u/pulsipher)\
**Replies:** 4\
**Last updated:** [August 3, 2019, 10:23pm UTC](https://discourse.julialang.org/t/error-with-building-nlexpression-in-jump-0-19-2/26998 "2019-08-03T22:23:53Z")

</div>

I ran into this unexpected error when trying to build a nonlinear expression. julia\> mean\_vs = @NLexpression(model, \[i = 1:num\_buses\], sum(prod2.get(\[m-1, m-1\]) \* (vre\_coeffs\[i, m\]^2 + vim…

---

## [Multiple amount of summations in JuMP](https://discourse.julialang.org/t/multiple-amount-of-summations-in-jump/27083)

<div class="topic-metadata">

**Author:** [@newjuliauser](https://discourse.julialang.org/u/newjuliauser)\
**Replies:** 1\
**Last updated:** [August 3, 2019, 8:39am UTC](https://discourse.julialang.org/t/multiple-amount-of-summations-in-jump/27083 "2019-08-03T08:39:53Z")

</div>

Hello, I’m wondering If it is possible to pass a multi summation expression into setNLobjective. Currently I have a for loop to compute summation, but, I was wondering if it is possible to optimize with JuMP on this fron…

---

## [How does the General registry work?](https://discourse.julialang.org/t/how-does-the-general-registry-work/27120)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [August 3, 2019, 7:40am UTC](https://discourse.julialang.org/t/how-does-the-general-registry-work/27120 "2019-08-03T07:40:07Z")

</div>

I understand the mechanics, but I am unsure about the actual rules since there is no README (sorry if I missed some discussion or announcement, I tried to look in all the docs). Specifically, From the METADATA days, I…

---

## [Cannot install FstFiles](https://discourse.julialang.org/t/cannot-install-fstfiles/9184)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 5\
**Last updated:** [August 3, 2019, 6:12am UTC](https://discourse.julialang.org/t/cannot-install-fstfiles/9184 "2019-08-03T06:12:10Z")

</div>

I tried to install FstFiles package but get the error message ERROR: unknown package FstFiles

---

## [Reading Data Is Still Too Slow](https://discourse.julialang.org/t/reading-data-is-still-too-slow/17919)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 35\
**Last updated:** [August 2, 2019, 10:49pm UTC](https://discourse.julialang.org/t/reading-data-is-still-too-slow/17919 "2019-08-02T22:49:41Z")

</div>

My crsp daily stock return data is a 6.4GB csv file. Compressed into csv.gz, it is about 1.7GB. (I posted a sample with my juliadb post, https://discourse.julialang.org/t/juliadb-getting-started-with-save-error/17891/4…

---

## [Instatiate a tracked array? or dynamically store slices of a tracked array? (Not sure what to call this)](https://discourse.julialang.org/t/instatiate-a-tracked-array-or-dynamically-store-slices-of-a-tracked-array-not-sure-what-to-call-this/27101)

<div class="topic-metadata">

**Author:** [@tue](https://discourse.julialang.org/u/tue)\
**Replies:** 6\
**Last updated:** [August 2, 2019, 7:30pm UTC](https://discourse.julialang.org/t/instatiate-a-tracked-array-or-dynamically-store-slices-of-a-tracked-array-not-sure-what-to-call-this/27101 "2019-08-02T19:30:34Z")

</div>

I have some code where I compute what essentially boils down to the following: di = zeros(n,knn) for i=1:n di\[i,:\] = d\[idx\[i\]\] end Now the problem is that d is a tracked array, and hence it cannot be put inside di …

---

## [Getting the closest method or dispatching method with parameter types without calling](https://discourse.julialang.org/t/getting-the-closest-method-or-dispatching-method-with-parameter-types-without-calling/27057)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 11\
**Last updated:** [August 2, 2019, 6:51pm UTC](https://discourse.julialang.org/t/getting-the-closest-method-or-dispatching-method-with-parameter-types-without-calling/27057 "2019-08-02T18:51:33Z")

</div>

Hi, julia\> f(x::Int,y::Float64) = x\*y f (generic function with 1 method) julia\> f(x::Float64,y::Int) = x/y f (generic function with 2 methods) julia\> f(x::Float64,y::Float64) = x+y f (generic function with 3 methods) …

---

## [Balanced Repeated Replication in Julia](https://discourse.julialang.org/t/balanced-repeated-replication-in-julia/27003)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 5\
**Last updated:** [August 2, 2019, 4:55pm UTC](https://discourse.julialang.org/t/balanced-repeated-replication-in-julia/27003 "2019-08-02T16:55:33Z")

</div>

Hi All, I am working with a public data source and I’m having trouble understanding how to compute replicate weights that are needed for calculating the standard errors for my estimates. The data source is here, if you’…

---

## [How to distribute julia software to the general public](https://discourse.julialang.org/t/how-to-distribute-julia-software-to-the-general-public/26981)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 15\
**Last updated:** [August 2, 2019, 4:34pm UTC](https://discourse.julialang.org/t/how-to-distribute-julia-software-to-the-general-public/26981 "2019-08-02T16:34:20Z")

</div>

Which is the best way to distribute a software developed in Julia for the general public? I mean, assuming the installation of the Julia interpreter is out of question. Most specifically, I have a software that performs…

---

## [\[ANN\] GeometricFlux.jl - Geometric Deep Learning for Flux](https://discourse.julialang.org/t/ann-geometricflux-jl-geometric-deep-learning-for-flux/27063)

<div class="topic-metadata">

**Author:** [@yuehhua](https://discourse.julialang.org/u/yuehhua)\
**Replies:** 2\
**Last updated:** [August 2, 2019, 4:06pm UTC](https://discourse.julialang.org/t/ann-geometricflux-jl-geometric-deep-learning-for-flux/27063 "2019-08-02T16:06:14Z")

</div>

Hi, Julians! I am pleased to announce GeometricFlux.jl v0.1.0, which is an extension toolbox enabled geometric deep learning or graph neural networks in Flux. This package aims to integrate existing JuliaGraphs ecosyst…

---

## [Threading 1.3: Run timer on free thread](https://discourse.julialang.org/t/threading-1-3-run-timer-on-free-thread/27110)

<div class="topic-metadata">

**Author:** [@tobias.knopp](https://discourse.julialang.org/u/tobias.knopp)\
**Replies:** 1\
**Last updated:** [August 2, 2019, 2:33pm UTC](https://discourse.julialang.org/t/threading-1-3-run-timer-on-free-thread/27110 "2019-08-02T14:33:41Z")

</div>

I am trying out the new threading infrastructure (1.3) and have code that uses a Timer. It seems that the timer currently is not scheduled on a different thread than the main thread. Is there a way to change that?

---

## ["undef not defined"](https://discourse.julialang.org/t/undef-not-defined/27099)

<div class="topic-metadata">

**Author:** [@Y\_Li](https://discourse.julialang.org/u/Y_Li)\
**Replies:** 6\
**Last updated:** [August 2, 2019, 1:43pm UTC](https://discourse.julialang.org/t/undef-not-defined/27099 "2019-08-02T13:43:56Z")

</div>

Hi, so this is my first time using JuMPChance, I have some questions regarding to setting variables in JuMPChance. Below is my code Blockquote using JuMPChance using JuMP using Gurobi var\_para = \[0.1 0.1 0.1\] m\_c…

---

## [How to dispatch according to the number I put in the type parameter?](https://discourse.julialang.org/t/how-to-dispatch-according-to-the-number-i-put-in-the-type-parameter/27071)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 5\
**Last updated:** [August 2, 2019, 1:11pm UTC](https://discourse.julialang.org/t/how-to-dispatch-according-to-the-number-i-put-in-the-type-parameter/27071 "2019-08-02T13:11:13Z")

</div>

struct MM{N} end f(x::MM{N}) where N\>5 = println("GREATER THAN 5") f(x::MM{N}) where N\<3 = println("LESS THAN 3") f(MM{2}()) I want to dispatch according to the number I put in the type parameter. Is there a way to do…

---

## [Reading gz'ed CSV does not work - length of provided header doesn't match the number of columns](https://discourse.julialang.org/t/reading-gzed-csv-does-not-work-length-of-provided-header-doesnt-match-the-number-of-columns/27106)

<div class="topic-metadata">

**Author:** [@hmmueller](https://discourse.julialang.org/u/hmmueller)\
**Replies:** 7\
**Last updated:** [August 2, 2019, 12:21pm UTC](https://discourse.julialang.org/t/reading-gzed-csv-does-not-work-length-of-provided-header-doesnt-match-the-number-of-columns/27106 "2019-08-02T12:21:51Z")

</div>

I have a trivial program working on a simple gz’ed CSV (available here): using CSV df = CSV.File("Perf\_Health\_MSSQL\\$PTSQL\_Buffer Manager\_Page life expectancy\_21-8h.csv.gz", header=\[:domain, :host, :feature, :oid, …

---

## [Prints won't show up when debugging a function](https://discourse.julialang.org/t/prints-wont-show-up-when-debugging-a-function/27105)

<div class="topic-metadata">

**Author:** [@mrapo](https://discourse.julialang.org/u/mrapo)\
**Replies:** 4\
**Last updated:** [August 2, 2019, 11:46am UTC](https://discourse.julialang.org/t/prints-wont-show-up-when-debugging-a-function/27105 "2019-08-02T11:46:05Z")

</div>

I’m debugging some issues in a Julia repository and at the moment I’m trying to track where in the code the issue is located. The repository contains one main module that uses several sub-modules. I have forked the repos…

---

## [How to switch JuliaPro to use the General registry?](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253)

<div class="topic-metadata">

**Author:** [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Replies:** 9\
**Last updated:** [August 2, 2019, 11:32am UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253 "2019-08-02T11:32:32Z")

</div>

I wanted to try PackageCompiler, but JuliaPro registry has not included it yet: (JuliaPro\_v1.0.1.1) pkg\> add PackageCompiler Updating registry at \`C:\\JuliaPro-1.0.1.1\\pkgs-1.0.1.1\\registries\\JuliaPro\` Updating git-r…

---

## [Interpolation of expression](https://discourse.julialang.org/t/interpolation-of-expression/27102)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 5\
**Last updated:** [August 2, 2019, 11:19am UTC](https://discourse.julialang.org/t/interpolation-of-expression/27102 "2019-08-02T11:19:30Z")

</div>

Is there a more elegant way of interpolating x\_i = i, without having to work with strings? This is what I am using now: for i = 1:3 eval(Meta.parse("x$i = $i")) end I haven’t figured out metaprogramming yet …

---

## [Solving a cplex model via JuMP and java](https://discourse.julialang.org/t/solving-a-cplex-model-via-jump-and-java/26646)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 10\
**Last updated:** [August 2, 2019, 9:55am UTC](https://discourse.julialang.org/t/solving-a-cplex-model-via-jump-and-java/26646 "2019-08-02T09:55:24Z")

</div>

A colleague and I both implemented a model we have been working on, him using a java interface to cplex and me using JuMP. After spending some time to reconcile the .lp outputs of the two models I genuinely believe that…

---

## [When does julia give up on type inference?](https://discourse.julialang.org/t/when-does-julia-give-up-on-type-inference/27077)

<div class="topic-metadata">

**Author:** [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Replies:** 7\
**Last updated:** [August 2, 2019, 9:54am UTC](https://discourse.julialang.org/t/when-does-julia-give-up-on-type-inference/27077 "2019-08-02T09:54:29Z")

</div>

f is a function that has quite a few methods and I use it somewhere deep in the call stack. I have two very similar methods, g, in one of them the return type of f is always inferred correctly for all x, and in the other…

---

## [How to plot y axis in log form, with differential equations?](https://discourse.julialang.org/t/how-to-plot-y-axis-in-log-form-with-differential-equations/27073)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 7\
**Last updated:** [August 2, 2019, 9:13am UTC](https://discourse.julialang.org/t/how-to-plot-y-axis-in-log-form-with-differential-equations/27073 "2019-08-02T09:13:21Z")

</div>

Hello, I would like advice on how to plot the results of differential equations in log format. I have searched the forums and the Plot.jl manual but cannot find an example. I would like to plot the y-axis in log format…

---

## [How to get the number of tracked parameters?](https://discourse.julialang.org/t/how-to-get-the-number-of-tracked-parameters/27096)

<div class="topic-metadata">

**Author:** [@tue](https://discourse.julialang.org/u/tue)\
**Replies:** 4\
**Last updated:** [August 2, 2019, 5:05am UTC](https://discourse.julialang.org/t/how-to-get-the-number-of-tracked-parameters/27096 "2019-08-02T05:05:35Z")

</div>

I’m sure there is a way to get the number of tracked parameters by Flux.Tracker, but so far I still haven’t found any way of actually getting this number. Suppose I make the following: forward = Chain( Conv((5,5), …

---

## [Redis Support?](https://discourse.julialang.org/t/redis-support/27013)

<div class="topic-metadata">

**Author:** [@Samuel\_Stapleton](https://discourse.julialang.org/u/Samuel_Stapleton)\
**Replies:** 1\
**Last updated:** [August 2, 2019, 3:50am UTC](https://discourse.julialang.org/t/redis-support/27013 "2019-08-02T03:50:04Z")

</div>

There were previous discussions to move Redis.jl to JuliaDatabases and to tag a version that supports Julia 1.0, but it appears that the package author never heard back about this original request. Are there plans to con…

---

## [Extracting Views, likes and dislikes by webscraping youtube Juliacon 2019](https://discourse.julialang.org/t/extracting-views-likes-and-dislikes-by-webscraping-youtube-juliacon-2019/27100)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [August 2, 2019, 2:49am UTC](https://discourse.julialang.org/t/extracting-views-likes-and-dislikes-by-webscraping-youtube-juliacon-2019/27100 "2019-08-02T02:49:57Z")

</div>

I am in the process of writing a blogpost about Juliacon 2019. I was looking into how I can webscrape data from all 111 Juliacon youtube videos by extracting the title, views, likes, and dislikes figures. I couldn’t fig…

---

## [Cos(pi/2) does not return 0](https://discourse.julialang.org/t/cos-pi-2-does-not-return-0/27081)

<div class="topic-metadata">

**Author:** [@fhagemann](https://discourse.julialang.org/u/fhagemann)\
**Replies:** 6\
**Last updated:** [August 1, 2019, 10:15pm UTC](https://discourse.julialang.org/t/cos-pi-2-does-not-return-0/27081 "2019-08-01T22:15:33Z")

</div>

Hi! While trying out some stuff in Julia, I came across the fact that cos(pi/2) does not give exact 0, but some type dependent output (6e-17 for Float64, -4e-8 for Float32, 5e-4 for Float16). Is this intended? And what …

---

## [Windows 10 WSL: stuck on "using Maxima"](https://discourse.julialang.org/t/windows-10-wsl-stuck-on-using-maxima/27093)

<div class="topic-metadata">

**Author:** [@bernie-wu](https://discourse.julialang.org/u/bernie-wu)\
**Replies:** 0\
**Last updated:** [August 1, 2019, 8:45pm UTC](https://discourse.julialang.org/t/windows-10-wsl-stuck-on-using-maxima/27093 "2019-08-01T20:45:34Z")

</div>

Hi, I am moving all of my developments from windows to Linux because Linux is just more convenient. I am using WSL. Version information can be found below. I installed maxima first before running using Maxima.jl sudo …

---

## [Sparse cholesky factorization with user permutation (Julia 1.1)](https://discourse.julialang.org/t/sparse-cholesky-factorization-with-user-permutation-julia-1-1/27080)

<div class="topic-metadata">

**Author:** [@JuhaHeiskala](https://discourse.julialang.org/u/JuhaHeiskala)\
**Replies:** 1\
**Last updated:** [August 1, 2019, 7:53pm UTC](https://discourse.julialang.org/t/sparse-cholesky-factorization-with-user-permutation-julia-1-1/27080 "2019-08-01T19:53:08Z")

</div>

The sparse cholesky factorization does not generally keep the user permutation given as parameter. SuiteSparse performs post ordering which is not disabled (as far as I can tell) in the current Julia interface to SuiteS…

---

## [Question about JuMPChance](https://discourse.julialang.org/t/question-about-jumpchance/27056)

<div class="topic-metadata">

**Author:** [@Y\_Li](https://discourse.julialang.org/u/Y_Li)\
**Replies:** 0\
**Last updated:** [August 1, 2019, 12:22am UTC](https://discourse.julialang.org/t/question-about-jumpchance/27056 "2019-08-01T00:22:32Z")

</div>

Hi, this is my first time using JuMPChance package, there seems to be some problems regarding to setting @indepnormal variables. Blockquote using JuMPChance using JuMP using Gurobi var\_para = \[0.1 0.1 0.1\] m\_chanc…

---

## [Store array in cells of DataFrame?](https://discourse.julialang.org/t/store-array-in-cells-of-dataframe/27088)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 2\
**Last updated:** [August 1, 2019, 6:55pm UTC](https://discourse.julialang.org/t/store-array-in-cells-of-dataframe/27088 "2019-08-01T18:55:19Z")

</div>

I’m having trouble with the following behavior: julia\> df = DataFrame(a = Array\[\], b = Int\[\]); push!(df, \[\[1,2,3\], 6\]) 1×2 DataFrame │ Row │ a │ b │ │ │ Array │ Int64 │ ├─────┼───────────┼───────┤ │ …

[Previous page](https://discourse.julialang.org/latest.md?page=1946)

[Next page](https://discourse.julialang.org/latest.md?page=1948)
