# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=389

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

**Page:** 390

---

## [How to plot a heatmap using jet colormap or/and other matplotlib colormaps](https://discourse.julialang.org/t/how-to-plot-a-heatmap-using-jet-colormap-or-and-other-matplotlib-colormaps/54974)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 15\
**Last updated:** [February 10, 2021, 8:13pm UTC](https://discourse.julialang.org/t/how-to-plot-a-heatmap-using-jet-colormap-or-and-other-matplotlib-colormaps/54974 "2021-02-10T20:13:16Z")

</div>

Hi all, When I enter clibraries(), I get: julia\> clibraries() 5-element Array{Symbol,1}: :Plots :cmocean :misc :colorcet :colorbrewer Misc, is supposed to contain the jet colormap, when I try this simple code …

---

## [Plotting a recursion graph for a function with 2 arguments](https://discourse.julialang.org/t/plotting-a-recursion-graph-for-a-function-with-2-arguments/54951)

<div class="topic-metadata">

**Author:** [@ash](https://discourse.julialang.org/u/ash)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 6:35pm UTC](https://discourse.julialang.org/t/plotting-a-recursion-graph-for-a-function-with-2-arguments/54951 "2021-02-10T18:35:17Z")

</div>

I have a recursive function with 2 indices of the form: function calc\_rs(n,p) println("Calculating for ($n,$p)") if n != 1 calc\_rs(n-1, 1) calc\_rs(n-1, p+1) end end It is called as: calc\_rs…

---

## [Dataframes difficult joins](https://discourse.julialang.org/t/dataframes-difficult-joins/54654)

<div class="topic-metadata">

**Author:** [@Smith](https://discourse.julialang.org/u/Smith)\
**Replies:** 3\
**Last updated:** [February 10, 2021, 5:03pm UTC](https://discourse.julialang.org/t/dataframes-difficult-joins/54654 "2021-02-10T17:03:56Z")

</div>

I am having difficulty in understanding on how to link up two dataframes to create another dataframe based on multiple criteria. Apologies, if the code below seem too long-most of it is to create the two dataframes in qu…

---

## [Single number and array as input in Flux model](https://discourse.julialang.org/t/single-number-and-array-as-input-in-flux-model/54986)

<div class="topic-metadata">

**Author:** [@anon74562486](https://discourse.julialang.org/u/anon74562486)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 3:50pm UTC](https://discourse.julialang.org/t/single-number-and-array-as-input-in-flux-model/54986 "2021-02-10T15:50:44Z")

</div>

Suppose I have a Flux simple model like this: model = Dense(1, 10) If I try to call this model with a single number I get an error: model(0.3) # ERROR However If I do this the model works correctly: model(\[0.3\]) D…

---

## [Pmap using fewer workers than expected after some time](https://discourse.julialang.org/t/pmap-using-fewer-workers-than-expected-after-some-time/46715)

<div class="topic-metadata">

**Author:** [@Luapulu](https://discourse.julialang.org/u/Luapulu)\
**Replies:** 5\
**Last updated:** [February 10, 2021, 12:29pm UTC](https://discourse.julialang.org/t/pmap-using-fewer-workers-than-expected-after-some-time/46715 "2021-02-10T12:29:31Z")

</div>

I’m running pmap with 16 workers and batch\_size=1 to process hundreds of files. Each file takes over an hour to work through and the files are relatively homogeneous but don’t take exactly the same time. For the first 14…

---

## [How to make DataVoyager recognize a variable as temporal?](https://discourse.julialang.org/t/how-to-make-datavoyager-recognize-a-variable-as-temporal/54982)

<div class="topic-metadata">

**Author:** [@LinusSch](https://discourse.julialang.org/u/LinusSch)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 11:13am UTC](https://discourse.julialang.org/t/how-to-make-datavoyager-recognize-a-variable-as-temporal/54982 "2021-02-10T11:13:24Z")

</div>

In David Anthoff’s “Intro to the Queryverse”, at 9:30 ( Intro to the Queryverse, a Julia data science stack | David Anthoff - YouTube ), he passes a dataset to voyager() (from DataVoyager.jl) and one of the variables is …

---

## [Correlated Random Effects in MixedModels.jl](https://discourse.julialang.org/t/correlated-random-effects-in-mixedmodels-jl/54612)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 8:40am UTC](https://discourse.julialang.org/t/correlated-random-effects-in-mixedmodels-jl/54612 "2021-02-10T08:40:57Z")

</div>

I recently read up on Fixed Effects vs. Random Effects and learned about the Correlated Random Effects model in Wooldridge’s Introductory Econometrics. The model looks as follows: y\_{it} = \\beta x\_{it} + \\gamma \\bar x…

---

## [Cbc JuMP : get optimize() best possible, best solution, number of nodes](https://discourse.julialang.org/t/cbc-jump-get-optimize-best-possible-best-solution-number-of-nodes/54904)

<div class="topic-metadata">

**Author:** [@juliamilp](https://discourse.julialang.org/u/juliamilp)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 8:23am UTC](https://discourse.julialang.org/t/cbc-jump-get-optimize-best-possible-best-solution-number-of-nodes/54904 "2021-02-10T08:23:56Z")

</div>

Hello, I’m working on a Cbc optimizer using JuMP. When I use the optimize function, the best possible, best solution, total nodes and nodes on trees appears as : “Cbc0010I After 14000 nodes, 1054 on tree, 662 best solut…

---

## [@cuda threads and blocks confusion](https://discourse.julialang.org/t/cuda-threads-and-blocks-confusion/54816)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 9\
**Last updated:** [February 10, 2021, 8:20am UTC](https://discourse.julialang.org/t/cuda-threads-and-blocks-confusion/54816 "2021-02-10T08:20:24Z")

</div>

I would really appreciate some help in understanding the threads and blocks options when using @cuda. I read this: https://juliagpu.gitlab.io/CUDA.jl/tutorials/introduction/ and watched this GPU Programming in Julia - Y…

---

## [Need help with multivariate multi-step timeseries prediction using RNN](https://discourse.julialang.org/t/need-help-with-multivariate-multi-step-timeseries-prediction-using-rnn/54966)

<div class="topic-metadata">

**Author:** [@UtkarshChemE](https://discourse.julialang.org/u/UtkarshChemE)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 5:29am UTC](https://discourse.julialang.org/t/need-help-with-multivariate-multi-step-timeseries-prediction-using-rnn/54966 "2021-02-10T05:29:40Z")

</div>

My network is as follows: LSTM Encoder (Take a sequence of n lags and output a hidden end vector) Fully Connected Dense Layer (To create a context vector) Decoder network (LSTM layer that process context vector for m l…

---

## [Initializing Flux weights the same as PyTorch?](https://discourse.julialang.org/t/initializing-flux-weights-the-same-as-pytorch/54660)

<div class="topic-metadata">

**Author:** [@DevJac](https://discourse.julialang.org/u/DevJac)\
**Replies:** 4\
**Last updated:** [February 9, 2021, 10:04pm UTC](https://discourse.julialang.org/t/initializing-flux-weights-the-same-as-pytorch/54660 "2021-02-09T22:04:38Z")

</div>

I am trying to replicate some results from a PyTorch model. I believe layers in Flux have their weights initialized quite differently than in PyTorch. For example, Flux layers have 0 bias to begin with, but PyTorch layer…

---

## [JuMP/CPLEX: retrieve value of array-variables in callback](https://discourse.julialang.org/t/jump-cplex-retrieve-value-of-array-variables-in-callback/54933)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 3\
**Last updated:** [February 9, 2021, 9:02pm UTC](https://discourse.julialang.org/t/jump-cplex-retrieve-value-of-array-variables-in-callback/54933 "2021-02-09T21:02:04Z")

</div>

Dear folks, I use JuMP (v0.21.4) and CPLEX (v0.7.3) and try to get the current variable values of sparse/dense-axis-array variables in a solver-specific callback. A quite long MWE based on the one in the documentation i…

---

## [Makie: adjusting axis scale / limits in 3D](https://discourse.julialang.org/t/makie-adjusting-axis-scale-limits-in-3d/29231)

<div class="topic-metadata">

**Author:** [@mihai](https://discourse.julialang.org/u/mihai)\
**Replies:** 5\
**Last updated:** [February 7, 2021, 8:10pm UTC](https://discourse.julialang.org/t/makie-adjusting-axis-scale-limits-in-3d/29231 "2021-02-07T20:10:10Z")

</div>

Hello, I would like to use very non-isotropic axis scales in 3D scatter plots. I can set the limits of the axis, but couldn’t find a working way of changing the data scaling in x/y/z (so that the plot is not overly stre…

---

## [Help in using the Cbc solver](https://discourse.julialang.org/t/help-in-using-the-cbc-solver/52956)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 10\
**Last updated:** [February 9, 2021, 10:27am UTC](https://discourse.julialang.org/t/help-in-using-the-cbc-solver/52956 "2021-02-09T10:27:46Z")

</div>

Hi Could someone help me in using Cbc. I don’t know what happens but every time I try to compile an error message appears. I’m using JuMP v0.18.6 and Cbc v0.7.1, I tried to update these packages but I couldn’t. Thank …

---

## [Makie inplace plot recipe](https://discourse.julialang.org/t/makie-inplace-plot-recipe/54857)

<div class="topic-metadata">

**Author:** [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Replies:** 6\
**Last updated:** [February 9, 2021, 8:34am UTC](https://discourse.julialang.org/t/makie-inplace-plot-recipe/54857 "2021-02-09T08:34:29Z")

</div>

Is it possible to define an in-place plotting recipe using Makie? For example, the following recipe works properly. using Makie @recipe(MyPlot, x, y) do scene Attributes( plot\_color = :red, ) end fu…

---

## [Julia Crash Fatal Error](https://discourse.julialang.org/t/julia-crash-fatal-error/54875)

<div class="topic-metadata">

**Author:** [@rezabayani](https://discourse.julialang.org/u/rezabayani)\
**Replies:** 6\
**Last updated:** [February 9, 2021, 12:51am UTC](https://discourse.julialang.org/t/julia-crash-fatal-error/54875 "2021-02-09T00:51:10Z")

</div>

I keep encountering a fatal error in julia and can not solve it. The reproduction steps are too much to cover in here. The gist of my code is that I am trying to solve a LP optimization problem with slight changes over a…

---

## [Solving overdetermined systems in ModelingToolkit.jl](https://discourse.julialang.org/t/solving-overdetermined-systems-in-modelingtoolkit-jl/54366)

<div class="topic-metadata">

**Author:** [@elkaps](https://discourse.julialang.org/u/elkaps)\
**Replies:** 7\
**Last updated:** [February 8, 2021, 10:29pm UTC](https://discourse.julialang.org/t/solving-overdetermined-systems-in-modelingtoolkit-jl/54366 "2021-02-08T22:29:08Z")

</div>

Hi, I’m getting to know ModelingToolkit.jl and I’d like to know if it’s possible to solve a system where there are more equations than variables. For example: @variables x, y julia\> eqs = \[Equation(x + y, 2), Equation…

---

## [TechEmpower/FrameworkBenchmarks R20 deadline 12/28 + first julia "JSON serialization" results](https://discourse.julialang.org/t/techempower-frameworkbenchmarks-r20-deadline-12-28-first-julia-json-serialization-results/51936)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 11\
**Last updated:** [February 8, 2021, 6:27pm UTC](https://discourse.julialang.org/t/techempower-frameworkbenchmarks-r20-deadline-12-28-first-julia-json-serialization-results/51936 "2021-02-08T18:27:54Z")

</div>

TLDR: Techempower Framework benchmarks is a collaborative, open web framework benchmarking project The next release: Round 20 "Last day for PR review is 12/28. " First Julia results ( “http.jl” ) … current “rank: 149…

---

## [Turing.jl, differentiation & categorical outputs -- \`isprobvec\` conundrum](https://discourse.julialang.org/t/turing-jl-differentiation-categorical-outputs-isprobvec-conundrum/54083)

<div class="topic-metadata">

**Author:** [@delehef](https://discourse.julialang.org/u/delehef)\
**Replies:** 5\
**Last updated:** [February 8, 2021, 6:12pm UTC](https://discourse.julialang.org/t/turing-jl-differentiation-categorical-outputs-isprobvec-conundrum/54083 "2021-02-08T18:12:51Z")

</div>

Hi all, I met a strange bug, and, to be honest, I’m relatively new to the language, so it could be a mistake from my part. So, I’m having a real blast playing with bayesian NNs, and I’m slowly building up from the basi…

---

## [Flux and automatic differentiation](https://discourse.julialang.org/t/flux-and-automatic-differentiation/54786)

<div class="topic-metadata">

**Author:** [@aquarelleX332](https://discourse.julialang.org/u/aquarelleX332)\
**Replies:** 3\
**Last updated:** [February 8, 2021, 5:16pm UTC](https://discourse.julialang.org/t/flux-and-automatic-differentiation/54786 "2021-02-08T17:16:50Z")

</div>

Hello all, This may be a naive question: how does Flux practice automatic differentiation? (i.e. according to which principle; I am aware we are dealing with Zygote) Where can I possibly find “educational” documentatio…

---

## [Using pretrained pytorch models in Flux](https://discourse.julialang.org/t/using-pretrained-pytorch-models-in-flux/39082)

<div class="topic-metadata">

**Author:** [@tbreloff](https://discourse.julialang.org/u/tbreloff)\
**Replies:** 6\
**Last updated:** [February 8, 2021, 5:11pm UTC](https://discourse.julialang.org/t/using-pretrained-pytorch-models-in-flux/39082 "2021-02-08T17:11:59Z")

</div>

Hi all. I’m excited to be able to dip my toes back into the Julia pond. I’ve missed the community these last few years. My question is about how to best leverage existing pytorch resources, such as the extensive pretrai…

---

## [Set\_start\_value in JuMP for SCIP](https://discourse.julialang.org/t/set-start-value-in-jump-for-scip/54829)

<div class="topic-metadata">

**Author:** [@ahmadreza-marandi](https://discourse.julialang.org/u/ahmadreza-marandi)\
**Replies:** 6\
**Last updated:** [February 8, 2021, 4:05pm UTC](https://discourse.julialang.org/t/set-start-value-in-jump-for-scip/54829 "2021-02-08T16:05:10Z")

</div>

Hi all, I am using set\_value\_start function in JuMP 0.19 to pass a warm start to SCIP. Though, the solver doesn’t seem to use it. When I plug in an optimal solution to the problem as the warm start, nothing changes in …

---

## [Proper use of scaling on axes from ordinations (like MDS and PCA)?](https://discourse.julialang.org/t/proper-use-of-scaling-on-axes-from-ordinations-like-mds-and-pca/24606)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 16\
**Last updated:** [February 8, 2021, 3:51pm UTC](https://discourse.julialang.org/t/proper-use-of-scaling-on-axes-from-ordinations-like-mds-and-pca/24606 "2021-02-08T15:51:27Z")

</div>

Moving a conversation from slack over to discourse because there’s a bunch of useful stuff that I’d like preserved, but also because we haven’t actually reached a consensus answer. The original question (by me): Quest…

---

## [SOCP with Vector{GenericAffExpr}](https://discourse.julialang.org/t/socp-with-vector-genericaffexpr/54844)

<div class="topic-metadata">

**Author:** [@mposs](https://discourse.julialang.org/u/mposs)\
**Replies:** 2\
**Last updated:** [February 8, 2021, 3:48pm UTC](https://discourse.julialang.org/t/socp-with-vector-genericaffexpr/54844 "2021-02-08T15:48:34Z")

</div>

Hi Is it possible to add a SOCP constraint to Gurobi through JuMP using @constraint(model, vec in SecondOrderCone()) where vec is a Vector{GenericAffExpr{Float64,VariableRef}} ? I got the impression it is possible ad…

---

## [CUDA kernel: how to pass an array of functions](https://discourse.julialang.org/t/cuda-kernel-how-to-pass-an-array-of-functions/54784)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 7\
**Last updated:** [February 8, 2021, 3:42pm UTC](https://discourse.julialang.org/t/cuda-kernel-how-to-pass-an-array-of-functions/54784 "2021-02-08T15:42:13Z")

</div>

I am working on genetic programming, where I need to pick a function from a set of functions fs by an integer index in each node of the tree. An example demonstrating the difficulty I encountered is given below. using C…

---

## [Connect to Redshift with SearchLightPostgreSQL](https://discourse.julialang.org/t/connect-to-redshift-with-searchlightpostgresql/53646)

<div class="topic-metadata">

**Author:** [@franco](https://discourse.julialang.org/u/franco)\
**Replies:** 5\
**Last updated:** [February 8, 2021, 3:41pm UTC](https://discourse.julialang.org/t/connect-to-redshift-with-searchlightpostgresql/53646 "2021-02-08T15:41:32Z")

</div>

Following the tutorial Working with Genie Apps - Accessing databases with SearchLight models I’m trying to use SearchLightPostgreSQL to connect to a Redshift database. I noticed it lists LibPQ as one of the dependencies…

---

## [Optimizing CUDA.jl performance for small array operations](https://discourse.julialang.org/t/optimizing-cuda-jl-performance-for-small-array-operations/54808)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 5\
**Last updated:** [February 8, 2021, 1:02pm UTC](https://discourse.julialang.org/t/optimizing-cuda-jl-performance-for-small-array-operations/54808 "2021-02-08T13:02:58Z")

</div>

Hi, I’m trying to get better GPU performance with CUDA.jl for small array operations. So, I’ve started to port SymbolicRegression.jl to the GPU using CUDA.jl. It seems I’ve gotten the main evaluation part of the code t…

---

## [Gaussian Processes with missing data](https://discourse.julialang.org/t/gaussian-processes-with-missing-data/53987)

<div class="topic-metadata">

**Author:** [@michielver](https://discourse.julialang.org/u/michielver)\
**Replies:** 11\
**Last updated:** [February 8, 2021, 12:38pm UTC](https://discourse.julialang.org/t/gaussian-processes-with-missing-data/53987 "2021-02-08T12:38:10Z")

</div>

Hi everyone, My data (and data generating process) is probably quite peculiar, but nevertheless me (and my supervisor) are convinced it should be possible to model using probabilistic programming, and we believe Gaussia…

---

## [Vlines ymin, ymax](https://discourse.julialang.org/t/vlines-ymin-ymax/54671)

<div class="topic-metadata">

**Author:** [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Replies:** 4\
**Last updated:** [February 8, 2021, 12:28pm UTC](https://discourse.julialang.org/t/vlines-ymin-ymax/54671 "2021-02-08T12:28:50Z")

</div>

Hi, I am using Plots with gr() backend and want to plot the errors of a linear regression model, i.e. indicate with vertical lines the difference between y and yhat. Essentially, I am looking for something similar to p…

---

## [Setting the x and y axis of a heatmap plot recipe](https://discourse.julialang.org/t/setting-the-x-and-y-axis-of-a-heatmap-plot-recipe/54821)

<div class="topic-metadata">

**Author:** [@ash](https://discourse.julialang.org/u/ash)\
**Replies:** 2\
**Last updated:** [February 8, 2021, 6:43am UTC](https://discourse.julialang.org/t/setting-the-x-and-y-axis-of-a-heatmap-plot-recipe/54821 "2021-02-08T06:43:15Z")

</div>

I am trying to create a recipe to plot a custom type like this: struct Sim{TT\<:Real, F} box::Box{TT} ψ::Array{Complex{TT}, 2} # other stuff end where struct Box{TT\<:Real} t::Array{TT, 1} x::Array{T…

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=388)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=390)
