# Specific Domains

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

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

**Page:** 333

---

## [I encountered a problem when using a convolutional neural network for training](https://discourse.julialang.org/t/i-encountered-a-problem-when-using-a-convolutional-neural-network-for-training/69087)

<div class="topic-metadata">

**Author:** [@wondering](https://discourse.julialang.org/u/wondering)\
**Replies:** 0\
**Last updated:** [October 2, 2021, 3:23am UTC](https://discourse.julialang.org/t/i-encountered-a-problem-when-using-a-convolutional-neural-network-for-training/69087 "2021-10-02T03:23:53Z")

</div>

My task contains two neural networks. There is an MLP (Multilayer Perceptron) network named Model\_out in front, and its parameters are stored in: p\_out, re\_out = Flux.destructure(model\_out), and split\_i = length(p\_out); …

---

## [Understanding Flux.jl use of \`gradient\` and \`params\`](https://discourse.julialang.org/t/understanding-flux-jl-use-of-gradient-and-params/69077)

<div class="topic-metadata">

**Author:** [@davibarreira](https://discourse.julialang.org/u/davibarreira)\
**Replies:** 4\
**Last updated:** [October 2, 2021, 4:54pm UTC](https://discourse.julialang.org/t/understanding-flux-jl-use-of-gradient-and-params/69077 "2021-10-02T16:54:23Z")

</div>

I’m reading the “60-minutes blitz” for Flux, and I’m trying to understand more deeply how the package works. Now, I have the following code: using Flux: params W = randn(3, 5) b = zeros(3) x = \[3,1,0,1,2\] y(x) = sum(…

---

## [StochasticDiffEq for receiver BER estimation?](https://discourse.julialang.org/t/stochasticdiffeq-for-receiver-ber-estimation/68957)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 2\
**Last updated:** [October 2, 2021, 3:48pm UTC](https://discourse.julialang.org/t/stochasticdiffeq-for-receiver-ber-estimation/68957 "2021-10-02T15:48:58Z")

</div>

Having an engineering background, I would like to ask the more mathematically inclined experts. One of the key parameters of a radio reception device is its bit error rate (BER) for a given ratio of wanted signal and di…

---

## [Is label an attribute of scatter() and lines() in Makie.jl?](https://discourse.julialang.org/t/is-label-an-attribute-of-scatter-and-lines-in-makie-jl/68961)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 6\
**Last updated:** [October 2, 2021, 2:44pm UTC](https://discourse.julialang.org/t/is-label-an-attribute-of-scatter-and-lines-in-makie-jl/68961 "2021-10-02T14:44:44Z")

</div>

I am working on my understanding of the Makie package. In the plot from the help documentation (https://makie.juliaplots.org/dev/examples/layoutables/legend/), different markers get used with their legend labels determi…

---

## [3D quiver plot?](https://discourse.julialang.org/t/3d-quiver-plot/69075)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 10\
**Last updated:** [October 2, 2021, 9:06am UTC](https://discourse.julialang.org/t/3d-quiver-plot/69075 "2021-10-02T09:06:05Z")

</div>

Hello! I am aware of the quiver function, but am not sure how to easily do a 3d quiver plot? Kind regards

---

## [How does JuMP.jl (Gurobi solver) take full advantage of the performance of multi-core CPUs](https://discourse.julialang.org/t/how-does-jump-jl-gurobi-solver-take-full-advantage-of-the-performance-of-multi-core-cpus/69103)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 2\
**Last updated:** [October 2, 2021, 11:07am UTC](https://discourse.julialang.org/t/how-does-jump-jl-gurobi-solver-take-full-advantage-of-the-performance-of-multi-core-cpus/69103 "2021-10-02T11:07:24Z")

</div>

Hi all, In the past, I usually used Yalmip to complete the modeling of mathematical optimization. When I construct a large-scale mixed integer linear programming, I don’t need any additional settings, and Gurobi can alw…

---

## [Why are flux models declared in top-level scope?](https://discourse.julialang.org/t/why-are-flux-models-declared-in-top-level-scope/68954)

<div class="topic-metadata">

**Author:** [@htmj](https://discourse.julialang.org/u/htmj)\
**Replies:** 4\
**Last updated:** [October 1, 2021, 8:48pm UTC](https://discourse.julialang.org/t/why-are-flux-models-declared-in-top-level-scope/68954 "2021-10-01T20:48:28Z")

</div>

From what I understand, one of the big things to avoid in julia is to have stuff be in the global scope (at least unless they are declared constant). In addition I don’t understand how i’m supposed to have several “inst…

---

## [How to set max\_iterations for Optim.jl](https://discourse.julialang.org/t/how-to-set-max-iterations-for-optim-jl/61410)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [October 1, 2021, 6:04pm UTC](https://discourse.julialang.org/t/how-to-set-max-iterations-for-optim-jl/61410 "2021-10-01T18:04:32Z")

</div>

I have the following code: lower = \[-20, -20, -20, -20, -20, -20.0, -20, -20, -20, -20, -20, -20\] upper = \[ 20, 20, 20, 20, 20, 20.0, 20, 20, 20, 20, 20, 20\] initial\_x = \[-1.4665866297620287, -3.…

---

## [Uploading vector of vectors to GPU in flux.jl](https://discourse.julialang.org/t/uploading-vector-of-vectors-to-gpu-in-flux-jl/68552)

<div class="topic-metadata">

**Author:** [@mys\_721tx](https://discourse.julialang.org/u/mys_721tx)\
**Replies:** 4\
**Last updated:** [October 1, 2021, 5:55pm UTC](https://discourse.julialang.org/t/uploading-vector-of-vectors-to-gpu-in-flux-jl/68552 "2021-10-01T17:55:52Z")

</div>

Hello all, I am training a many-to-many RNN. My input and output data are both Vector{Vector{Vector{Float32}}}. The jld file of the input and output is about 3GB. I checked the model-zoo and did not find anything exampl…

---

## [Multiple texture interpolations at the same time](https://discourse.julialang.org/t/multiple-texture-interpolations-at-the-same-time/69037)

<div class="topic-metadata">

**Author:** [@lodygaw](https://discourse.julialang.org/u/lodygaw)\
**Replies:** 1\
**Last updated:** [October 1, 2021, 12:07pm UTC](https://discourse.julialang.org/t/multiple-texture-interpolations-at-the-same-time/69037 "2021-10-01T12:07:29Z")

</div>

Hello, I am begginer to Julia and CUDA.jl so please forgive me if the answer to the question is obvious. I couldn’t find the solution by myself. I would like to perform texture interpolation (similar to this) but I hav…

---

## [Local, symbolic sensitivity analysis of Euler Angles](https://discourse.julialang.org/t/local-symbolic-sensitivity-analysis-of-euler-angles/68984)

<div class="topic-metadata">

**Author:** [@JanKap](https://discourse.julialang.org/u/JanKap)\
**Replies:** 6\
**Last updated:** [October 1, 2021, 11:24am UTC](https://discourse.julialang.org/t/local-symbolic-sensitivity-analysis-of-euler-angles/68984 "2021-10-01T11:24:15Z")

</div>

Hey all :slight\_smile: I’m trying to wrap my head around a supposedly simple problem, but it’s not working yet. It is known (see https://www.nxp.com/files-static/sensors/doc/app\_note/AN3461.pdf) that the relationship …

---

## [Makie - Cycle colors for all plots](https://discourse.julialang.org/t/makie-cycle-colors-for-all-plots/69033)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 4\
**Last updated:** [October 1, 2021, 11:01am UTC](https://discourse.julialang.org/t/makie-cycle-colors-for-all-plots/69033 "2021-10-01T11:01:11Z")

</div>

Hello! I am trying to substitute the current color cycle by one of my own, but I am not able to do so. I have tried set\_theme!(palette = (color = cgrad(:roma, 4, categorical = true))) and \`Axis(palette = (color = cgrad…

---

## [Callbacks interfering with solver output](https://discourse.julialang.org/t/callbacks-interfering-with-solver-output/69001)

<div class="topic-metadata">

**Author:** [@arkanver](https://discourse.julialang.org/u/arkanver)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 8:35am UTC](https://discourse.julialang.org/t/callbacks-interfering-with-solver-output/69001 "2021-10-01T08:35:39Z")

</div>

Hello all, I am currently working on a MILP using JuMP and Gurobi. As far as I’m aware my versions are all up to date - Julia 1.6.3, JuMP v0.21.10, Gurobi.jl v0.9.14 (and Gurobi - the solver - 9.1.2). I’m solving my pr…

---

## [Is there an idiomatic way to select a single value from a SQL query?](https://discourse.julialang.org/t/is-there-an-idiomatic-way-to-select-a-single-value-from-a-sql-query/68962)

<div class="topic-metadata">

**Author:** [@gleyland](https://discourse.julialang.org/u/gleyland)\
**Replies:** 3\
**Last updated:** [October 1, 2021, 7:59am UTC](https://discourse.julialang.org/t/is-there-an-idiomatic-way-to-select-a-single-value-from-a-sql-query/68962 "2021-10-01T07:59:23Z")

</div>

Hi, Some SQL queries (like “SELECT COUNT(\*)…”) return a single value. The shortest way I’ve managed to come up with for obtaining the result of the query is: using SQLite db = SQLite.DB() SQLite.DBInterface.execute(db…

---

## [Gurobi callback in JuMP for submitting heuristic solution](https://discourse.julialang.org/t/gurobi-callback-in-jump-for-submitting-heuristic-solution/69006)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 2\
**Last updated:** [September 30, 2021, 8:40pm UTC](https://discourse.julialang.org/t/gurobi-callback-in-jump-for-submitting-heuristic-solution/69006 "2021-09-30T20:40:52Z")

</div>

Dear All, I am trying to implement the fix-and-dive heuristic for the traveling salesman problem in JuMP with Gurobi based on the Python+Gurobi code available here: https://github.com/Gurobi/pres-mipheur/blob/master/mip…

---

## [Add classname to Interact dropdown widget](https://discourse.julialang.org/t/add-classname-to-interact-dropdown-widget/68993)

<div class="topic-metadata">

**Author:** [@cwiese](https://discourse.julialang.org/u/cwiese)\
**Replies:** 0\
**Last updated:** [September 30, 2021, 12:04pm UTC](https://discourse.julialang.org/t/add-classname-to-interact-dropdown-widget/68993 "2021-09-30T12:04:27Z")

</div>

I am using Interact (Blink) - I create a dropdown widget ddl = dropdown(Observable(attr\_values)); I would like to add “loader is-active” classname to the Select … when a value is selected and remove when the data come…

---

## [Error using DifferentialEquations.jl to simulate a reasonably common SDE](https://discourse.julialang.org/t/error-using-differentialequations-jl-to-simulate-a-reasonably-common-sde/68930)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 13\
**Last updated:** [September 30, 2021, 11:28am UTC](https://discourse.julialang.org/t/error-using-differentialequations-jl-to-simulate-a-reasonably-common-sde/68930 "2021-09-30T11:28:34Z")

</div>

I’m using DifferentialEquations.jl to try to simulate paths of the following SDE: dS = 0.0314 dt + v\*(-0.576) dW\_1 + v\*sqrt(1 - 0.576^2) dW\_2 d(v^2) = 0.035\*(0.636 - v^2) dt + 0.144 v^2 dW\_1 Sorry for the formatting, I…

---

## [How to produce this type of graph?](https://discourse.julialang.org/t/how-to-produce-this-type-of-graph/68955)

<div class="topic-metadata">

**Author:** [@jo-fleck](https://discourse.julialang.org/u/jo-fleck)\
**Replies:** 6\
**Last updated:** [September 30, 2021, 10:08am UTC](https://discourse.julialang.org/t/how-to-produce-this-type-of-graph/68955 "2021-09-30T10:08:22Z")

</div>

I would like to compare three measures which characterize each of the US states. They are measured on three different scales so I am thinking to illustrate the relative ranking of states. I have seen this graph and it …

---

## [Allocating different arrays on multiple GPUs](https://discourse.julialang.org/t/allocating-different-arrays-on-multiple-gpus/68836)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 8\
**Last updated:** [September 30, 2021, 6:02am UTC](https://discourse.julialang.org/t/allocating-different-arrays-on-multiple-gpus/68836 "2021-09-30T06:02:15Z")

</div>

i’ve read the docs on unified memory, but think that’s overkill for my use case. is it really not possible to simply switch devices, define another CuArray, and then launch a kernel on it? i get ERROR\_INVALID\_VALUE: j…

---

## [MPI Jupyter kernel & cluster in Julia (similar to dask-mpi / ipyparallel)?](https://discourse.julialang.org/t/mpi-jupyter-kernel-cluster-in-julia-similar-to-dask-mpi-ipyparallel/67240)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 9\
**Last updated:** [September 30, 2021, 4:51am UTC](https://discourse.julialang.org/t/mpi-jupyter-kernel-cluster-in-julia-similar-to-dask-mpi-ipyparallel/67240 "2021-09-30T04:51:13Z")

</div>

I’m on a cluster where MPI transport is significantly faster than TCP transport, and I’d like to keep my interactive Jupyter-based workflow for parallel work. A key thing is I don’t want to be doing any intercommunicatio…

---

## [Max.(v1,v2) on the GPU](https://discourse.julialang.org/t/max-v1-v2-on-the-gpu/68386)

<div class="topic-metadata">

**Author:** [@gianmariomanca](https://discourse.julialang.org/u/gianmariomanca)\
**Replies:** 5\
**Last updated:** [September 30, 2021, 3:19am UTC](https://discourse.julialang.org/t/max-v1-v2-on-the-gpu/68386 "2021-09-30T03:19:14Z")

</div>

What’s the best way to implement the element wise maximum of for 2 vectors of the same length on the GPU using CUDA.jl or any other package? julia\> v1 = \[1, 2, 3\] 3-element Vector{Int64}: 1 2 3 julia\> v2 = \[4, 3, 2\]…

---

## [Porting MATLAB code that uses Mapping Toolbox](https://discourse.julialang.org/t/porting-matlab-code-that-uses-mapping-toolbox/68967)

<div class="topic-metadata">

**Author:** [@fyzycyst](https://discourse.julialang.org/u/fyzycyst)\
**Replies:** 1\
**Last updated:** [September 29, 2021, 10:27pm UTC](https://discourse.julialang.org/t/porting-matlab-code-that-uses-mapping-toolbox/68967 "2021-09-29T22:27:35Z")

</div>

Looking for opinions/options… I’ve got some old MATLAB code that makes use of Mapping Toolbox that I want to port into Julia. What’s my best bet? Thanks.

---

## [Issues with CSV in Julia 1.6.2](https://discourse.julialang.org/t/issues-with-csv-in-julia-1-6-2/67507)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 33\
**Last updated:** [September 29, 2021, 7:13pm UTC](https://discourse.julialang.org/t/issues-with-csv-in-julia-1-6-2/67507 "2021-09-29T19:13:03Z")

</div>

This morning I did a standard upgrade to Julia 1.6.2 and loaded the basic packages I use for Data Science. After adding everything, I tried to get started, beginning with the simple statement ‘using CSV’ and got a pag…

---

## [Differentiation matrix stack overflow](https://discourse.julialang.org/t/differentiation-matrix-stack-overflow/68944)

<div class="topic-metadata">

**Author:** [@GianpieroPascale](https://discourse.julialang.org/u/GianpieroPascale)\
**Replies:** 3\
**Last updated:** [September 29, 2021, 5:14pm UTC](https://discourse.julialang.org/t/differentiation-matrix-stack-overflow/68944 "2021-09-29T17:14:40Z")

</div>

I’m trying to follow along with @stevengj’s lecture notes on 2D differentiation matrices, but I can’t get past the first example without Julia reporting a stack-overflow error. The piece of code in question is # constru…

---

## [Issues with HMC/NUTS samplers](https://discourse.julialang.org/t/issues-with-hmc-nuts-samplers/68900)

<div class="topic-metadata">

**Author:** [@tchebycheff](https://discourse.julialang.org/u/tchebycheff)\
**Replies:** 4\
**Last updated:** [September 29, 2021, 3:53pm UTC](https://discourse.julialang.org/t/issues-with-hmc-nuts-samplers/68900 "2021-09-29T15:53:41Z")

</div>

Hi - I am trying to run MCMC on this model with Turing. Only SMC sampler works. With HMC, NUTS, PG, DynamicHMC I get the error TypeError: in typeassert, expected Float64, got a value of type ForwardDiff.Dual{Nothing, F…

---

## [Problems using BacksolveAdjoint for an SDE with DiffEqFlux](https://discourse.julialang.org/t/problems-using-backsolveadjoint-for-an-sde-with-diffeqflux/68049)

<div class="topic-metadata">

**Author:** [@JoseG](https://discourse.julialang.org/u/JoseG)\
**Replies:** 5\
**Last updated:** [September 29, 2021, 1:15pm UTC](https://discourse.julialang.org/t/problems-using-backsolveadjoint-for-an-sde-with-diffeqflux/68049 "2021-09-29T13:15:19Z")

</div>

I’m trying to train a SDE with DiffEqFlux. I had issues with stack overflows when using TrackerAdjoint (probably because of the size of the problem), so i tried using BacksolveAdjoint but this errors on calculating the g…

---

## [Plots -- transparency of surface?](https://discourse.julialang.org/t/plots-transparency-of-surface/24524)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 9\
**Last updated:** [September 29, 2021, 11:47am UTC](https://discourse.julialang.org/t/plots-transparency-of-surface/24524 "2021-09-29T11:47:15Z")

</div>

Can I control the transparency/alpha value of the surface in surface plots? I would like to superimpose the solution of an ode on a surface… fillalpha=0.2 doesn’t have an effect. Another way to do it? (e.g. using wirefra…

---

## [Solving a large system of differential equations](https://discourse.julialang.org/t/solving-a-large-system-of-differential-equations/68870)

<div class="topic-metadata">

**Author:** [@danielw96](https://discourse.julialang.org/u/danielw96)\
**Replies:** 10\
**Last updated:** [September 29, 2021, 10:50am UTC](https://discourse.julialang.org/t/solving-a-large-system-of-differential-equations/68870 "2021-09-29T10:50:18Z")

</div>

Hey :slight\_smile: , I am currently trying to solve a system of differential equations. I create the coefficient matrix as a sparse matrix, but when i try to use the ode solver, it gives me an out of memory error. The c…

---

## [Linear constraint optimisation on GPU](https://discourse.julialang.org/t/linear-constraint-optimisation-on-gpu/68692)

<div class="topic-metadata">

**Author:** [@Huy\_Nguyen](https://discourse.julialang.org/u/Huy_Nguyen)\
**Replies:** 5\
**Last updated:** [September 29, 2021, 9:45am UTC](https://discourse.julialang.org/t/linear-constraint-optimisation-on-gpu/68692 "2021-09-29T09:45:33Z")

</div>

I currently use JuMP and Ipopt to solve Linear Constraints Optimisation problems, primarily with linear equality and inequality constraints. I would like to either solve many of these problems in parallel, or sequentiall…

---

## [Display (a different) value under scatter point](https://discourse.julialang.org/t/display-a-different-value-under-scatter-point/10821)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 12\
**Last updated:** [September 29, 2021, 7:54am UTC](https://discourse.julialang.org/t/display-a-different-value-under-scatter-point/10821 "2021-09-29T07:54:43Z")

</div>

Plotlyjs is giving me a plot that doesn’t seem to be finding the closest scatter point to my cursor (indicated by black arrow): using Plots plotlyjs() scatter(x1, x2) My question is: How can I display the name…

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

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