# Specific Domains

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

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

**Page:** 171

---

## [Compute gradients in neuralODE with Zygote](https://discourse.julialang.org/t/compute-gradients-in-neuralode-with-zygote/103106)

<div class="topic-metadata">

**Author:** [@tommy\_J](https://discourse.julialang.org/u/tommy_J)\
**Replies:** 3\
**Last updated:** [August 24, 2023, 7:50am UTC](https://discourse.julialang.org/t/compute-gradients-in-neuralode-with-zygote/103106 "2023-08-24T07:50:41Z")

</div>

Hello everyone, I would like to know how to check the gradients for a single batch in this example. After the computation of l1 I did: batch1 = train\_loader.data\[1\] time1 = train\_loader.data\[2\] loss, back = Zygote.…

---

## [Can the CPU function be a multi-process parallel function when using the Threads.@spawn command to perform overlapping operations between the GPU and the CPU?](https://discourse.julialang.org/t/can-the-cpu-function-be-a-multi-process-parallel-function-when-using-the-threads-spawn-command-to-perform-overlapping-operations-between-the-gpu-and-the-cpu/103098)

<div class="topic-metadata">

**Author:** [@fred\_wu](https://discourse.julialang.org/u/fred_wu)\
**Replies:** 3\
**Last updated:** [August 24, 2023, 7:45am UTC](https://discourse.julialang.org/t/can-the-cpu-function-be-a-multi-process-parallel-function-when-using-the-threads-spawn-command-to-perform-overlapping-operations-between-the-gpu-and-the-cpu/103098 "2023-08-24T07:45:01Z")

</div>

Hi, When the CPU performs compute-intensive tasks, it never yields, so the Threads.@spawn command assigns CPU and GPU operations to different threads to achieve overlap and shorten the overall running time. However, can…

---

## [Iterative completion of PDE solutions](https://discourse.julialang.org/t/iterative-completion-of-pde-solutions/103118)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 2:24am UTC](https://discourse.julialang.org/t/iterative-completion-of-pde-solutions/103118 "2023-08-24T02:24:05Z")

</div>

Hi. I have been reading this article, https://papers.ssrn.com/sol3/papers.cfm?abstract\_id=3736505 Where they iteratively complete a solution symbolically. It is possible to do something similar numerical in Julia ? I…

---

## [Can I use a categorical x/y variable in Makie?](https://discourse.julialang.org/t/can-i-use-a-categorical-x-y-variable-in-makie/103129)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 2\
**Last updated:** [August 23, 2023, 11:18pm UTC](https://discourse.julialang.org/t/can-i-use-a-categorical-x-y-variable-in-makie/103129 "2023-08-23T23:18:01Z")

</div>

Hi, I’d like to plot an heatmap using Makie (I don’t care about the backend). The data are stored in a 2D matrix, and the x/y dimensions are actually categorical, represented with a vector of strings. In Plots, I can do …

---

## [Some Dagger.jl beginner questions](https://discourse.julialang.org/t/some-dagger-jl-beginner-questions/102704)

<div class="topic-metadata">

**Author:** [@fabiangans](https://discourse.julialang.org/u/fabiangans)\
**Replies:** 6\
**Last updated:** [August 23, 2023, 9:22pm UTC](https://discourse.julialang.org/t/some-dagger-jl-beginner-questions/102704 "2023-08-23T21:22:22Z")

</div>

Hi all, I recently started working with Dagger.jl and have a few questions about controlling the scheduler and merging shards. In my workflow I am doing a mapreduce-like operation over hierarchical data. An abstract ver…

---

## [Pydeck julia binding](https://discourse.julialang.org/t/pydeck-julia-binding/89507)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 1\
**Last updated:** [August 23, 2023, 8:26pm UTC](https://discourse.julialang.org/t/pydeck-julia-binding/89507 "2023-08-23T20:26:54Z")

</div>

I’m unable to set up the PyCall binding to pydeck shown here tutorial Basically yarn bootstrap exits with an error Command failed with exit code 1 trying to build pydeck/julia-pycall-binding branch. I’ve cloned the rep…

---

## [How can I change the fontsize of the colorbar's label in Plots.jl?](https://discourse.julialang.org/t/how-can-i-change-the-fontsize-of-the-colorbars-label-in-plots-jl/103108)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 6\
**Last updated:** [August 23, 2023, 5:55pm UTC](https://discourse.julialang.org/t/how-can-i-change-the-fontsize-of-the-colorbars-label-in-plots-jl/103108 "2023-08-23T17:55:55Z")

</div>

Hi all, I have a 2D matrix that I want to plot as an heatmap. It is quite big though (58x58), so plotting it with function pairwise\_difference(v::Vector)::Matrix \[x - y for x in v, y in v\] end measures\_vec = \[t.mea…

---

## [REPL crash from attempting a heatmap plot with a large dataset](https://discourse.julialang.org/t/repl-crash-from-attempting-a-heatmap-plot-with-a-large-dataset/103112)

<div class="topic-metadata">

**Author:** [@CosmicSpittle](https://discourse.julialang.org/u/CosmicSpittle)\
**Replies:** 3\
**Last updated:** [August 23, 2023, 4:09pm UTC](https://discourse.julialang.org/t/repl-crash-from-attempting-a-heatmap-plot-with-a-large-dataset/103112 "2023-08-23T16:09:20Z")

</div>

I seemed to be up against a limit on the size of dataset that CairoMakie can handle. I am trying to plot a heatmap of a large spectrogram from DSP.jl. I’ve reduced the problem I’m having to a size issue. Oddly, I was …

---

## [Numerical stability in Turing.jl](https://discourse.julialang.org/t/numerical-stability-in-turing-jl/103035)

<div class="topic-metadata">

**Author:** [@boogiewoogie](https://discourse.julialang.org/u/boogiewoogie)\
**Replies:** 7\
**Last updated:** [August 23, 2023, 2:56am UTC](https://discourse.julialang.org/t/numerical-stability-in-turing-jl/103035 "2023-08-23T02:56:32Z")

</div>

I went through Computational Tricks with Turing \<br/\> (Non-Centered Parametrization \<br/\> and QR Decomposition), where it’s suggested to decorrelate the posterior in a Bayesian regression model by a QR decomposition of t…

---

## [Coupled PDEs with NeuralPDE.jl](https://discourse.julialang.org/t/coupled-pdes-with-neuralpde-jl/103064)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 2\
**Last updated:** [August 22, 2023, 8:08pm UTC](https://discourse.julialang.org/t/coupled-pdes-with-neuralpde-jl/103064 "2023-08-22T20:08:48Z")

</div>

Does anyone have an example on how to use NeuralPDE.jl with Coupled PDEs ? All the examples I have seen only use one function, I would like to solve 8 coupled equations with 8 functions. So, if an example with more than…

---

## [splitDict() function from PuLP](https://discourse.julialang.org/t/splitdict-function-from-pulp/103050)

<div class="topic-metadata">

**Author:** [@nemoincognito](https://discourse.julialang.org/u/nemoincognito)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 2:09am UTC](https://discourse.julialang.org/t/splitdict-function-from-pulp/103050 "2023-08-22T02:09:34Z")

</div>

Hi I am migrating a lot of code over from PuLP to JuMP and just wanted to suggest that Julia put in a splitDict() function which is useful for Network Flow optimization work. I’ve added something that works below. funct…

---

## [Find string with special characters in data frame read with the CSV package](https://discourse.julialang.org/t/find-string-with-special-characters-in-data-frame-read-with-the-csv-package/102967)

<div class="topic-metadata">

**Author:** [@NunonuN](https://discourse.julialang.org/u/NunonuN)\
**Replies:** 14\
**Last updated:** [August 22, 2023, 1:03am UTC](https://discourse.julialang.org/t/find-string-with-special-characters-in-data-frame-read-with-the-csv-package/102967 "2023-08-22T01:03:43Z")

</div>

Supposing I have the data frame: using DataFrames df = DataFrame(year = \[2012, 1993, 1991, 1984, 1957, 1972, 1980\], lang = \["Julia", "R", "Python", "Matlab", "Fortran", "C", "C++"\]) I can find the creation year of C++…

---

## [Bootstrap in Global Sensitivity Analysis (GSA)](https://discourse.julialang.org/t/bootstrap-in-global-sensitivity-analysis-gsa/103045)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 12:46am UTC](https://discourse.julialang.org/t/bootstrap-in-global-sensitivity-analysis-gsa/103045 "2023-08-22T00:46:39Z")

</div>

Hi There, Running the basic example below the bootstrapping just returns nothing So no standard errors are returned at all. Playing with sobolsensitivity.jl package if I go in and hard code nboot I can return bootstra…

---

## [How to analyse sensitivity in multi-optimal solution?](https://discourse.julialang.org/t/how-to-analyse-sensitivity-in-multi-optimal-solution/102938)

<div class="topic-metadata">

**Author:** [@jack\_lee](https://discourse.julialang.org/u/jack_lee)\
**Replies:** 6\
**Last updated:** [August 21, 2023, 10:28pm UTC](https://discourse.julialang.org/t/how-to-analyse-sensitivity-in-multi-optimal-solution/102938 "2023-08-21T22:28:39Z")

</div>

Here is the problem I meet: find the best plan; How much should the profit per unit of product III increase to make it worthwhile to arrange production? What is the range of variation of the profit of product I that …

---

## [How to debug "type Nothing has no field color"](https://discourse.julialang.org/t/how-to-debug-type-nothing-has-no-field-color/103038)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 4:43pm UTC](https://discourse.julialang.org/t/how-to-debug-type-nothing-has-no-field-color/103038 "2023-08-21T16:43:15Z")

</div>

I hit the following bug: Switch on the tutorial project · Issue #8 · bradcarman/ModelingToolkitDesigner.jl · GitHub But the author of the package cannot reproduce it. How can we find the reason for this bug? Can anybod…

---

## [JuMP: how to find which constraints a variable appears in](https://discourse.julialang.org/t/jump-how-to-find-which-constraints-a-variable-appears-in/103014)

<div class="topic-metadata">

**Author:** [@rjuly7](https://discourse.julialang.org/u/rjuly7)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 2:37pm UTC](https://discourse.julialang.org/t/jump-how-to-find-which-constraints-a-variable-appears-in/103014 "2023-08-21T14:37:14Z")

</div>

I am using JuMP to formulate a large optimization problem. Is there any function which allows me to see all constraints in which a specific variable appears? Or if I have the reference to a specific constraint, is there …

---

## [Run Pkg.test with several processors](https://discourse.julialang.org/t/run-pkg-test-with-several-processors/6917)

<div class="topic-metadata">

**Author:** [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Replies:** 16\
**Last updated:** [August 21, 2023, 9:48am UTC](https://discourse.julialang.org/t/run-pkg-test-with-several-processors/6917 "2023-08-21T09:48:50Z")

</div>

I have tests that use several processors. If I run julia -p 4 and then Pkg.test I only get 1 as a worker.

---

## [Why are these violin plots "clipped"?](https://discourse.julialang.org/t/why-are-these-violin-plots-clipped/103006)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 7\
**Last updated:** [August 21, 2023, 9:09am UTC](https://discourse.julialang.org/t/why-are-these-violin-plots-clipped/103006 "2023-08-21T09:09:37Z")

</div>

Hi all, I produced some violin plots from some data I have: df\_temp = DataFrame(mnemonic = df\_model\_master\[:, :mnemonic\], instruction = df\_model\_master\[:, instruction\_sym\], shift = df\_model\_master\[:, has\_barrel\_…

---

## [Taking the gradient of an einsum](https://discourse.julialang.org/t/taking-the-gradient-of-an-einsum/103003)

<div class="topic-metadata">

**Author:** [@yuvalw](https://discourse.julialang.org/u/yuvalw)\
**Replies:** 4\
**Last updated:** [August 21, 2023, 8:55am UTC](https://discourse.julialang.org/t/taking-the-gradient-of-an-einsum/103003 "2023-08-21T08:55:21Z")

</div>

Hello, I would really appreciate some help optimizing my optimization. What I calculate makes the most sense (to me) as an einsum but I cannot seem to take its gradient properly. What I managed to do instead is iterate o…

---

## [Directly modifying partials in ForwardDiff](https://discourse.julialang.org/t/directly-modifying-partials-in-forwarddiff/102755)

<div class="topic-metadata">

**Author:** [@Pablo\_Marchant](https://discourse.julialang.org/u/Pablo_Marchant)\
**Replies:** 14\
**Last updated:** [August 21, 2023, 8:19am UTC](https://discourse.julialang.org/t/directly-modifying-partials-in-forwarddiff/102755 "2023-08-21T08:19:09Z")

</div>

Hi all, I am currently trying to optimize a package I’ve written to model stellar evolution. Just in case I prefer to give some context to know if there might be a much better way to do what I’m trying to achieve. Stell…

---

## [Are there ways to preallocate memory via structs for JuMP autodiff?](https://discourse.julialang.org/t/are-there-ways-to-preallocate-memory-via-structs-for-jump-autodiff/102945)

<div class="topic-metadata">

**Author:** [@told](https://discourse.julialang.org/u/told)\
**Replies:** 2\
**Last updated:** [August 20, 2023, 8:58pm UTC](https://discourse.julialang.org/t/are-there-ways-to-preallocate-memory-via-structs-for-jump-autodiff/102945 "2023-08-20T20:58:20Z")

</div>

I’m very aware of the limitations of ForwardDiff.jl that code has to be written general enough to accept {T\<:Real}. The JuMP docs suggest to write target functions like function good\_f(x::T...) where {T\<:Real} y = …

---

## [How can I show the mean in a groupedboxplot?](https://discourse.julialang.org/t/how-can-i-show-the-mean-in-a-groupedboxplot/102980)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 4\
**Last updated:** [August 20, 2023, 4:03pm UTC](https://discourse.julialang.org/t/how-can-i-show-the-mean-in-a-groupedboxplot/102980 "2023-08-20T16:03:16Z")

</div>

Hi all! I have this kind of DataFrame containing data: julia\> df\_filtered = filter(:mnemonic =\> m -\> m ∈ selected\_instructions, df\_temp) 1990×4 DataFrame Row │ mnemonic instruction forwarding value …

---

## [Bayesian Cognitive Modeling with Turing.jl (Part 2,3)](https://discourse.julialang.org/t/bayesian-cognitive-modeling-with-turing-jl-part-2-3/103002)

<div class="topic-metadata">

**Author:** [@quangtiencs](https://discourse.julialang.org/u/quangtiencs)\
**Replies:** 0\
**Last updated:** [August 20, 2023, 12:05pm UTC](https://discourse.julialang.org/t/bayesian-cognitive-modeling-with-turing-jl-part-2-3/103002 "2023-08-20T12:05:45Z")

</div>

Github: GitHub - quangtiencs/bayesian-cognitive-modeling-with-turing.jl: Bayesian Cognitive Modeling with Turing.jl (Julia Programming Language) Status: All models of these chapters are done: 3, 4, 5, 6 (5/7), 8, 9. I’m…

---

## [Problems with mouse manipulation in GLMakie](https://discourse.julialang.org/t/problems-with-mouse-manipulation-in-glmakie/102957)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 3\
**Last updated:** [August 20, 2023, 8:23am UTC](https://discourse.julialang.org/t/problems-with-mouse-manipulation-in-glmakie/102957 "2023-08-20T08:23:41Z")

</div>

Hi, maybe I’m simply too untalented, but I am not able to manipulate the MWMesh below with the mouse in such a way that the two colored faces are visible to the left and right. Im able to view it from all other perspect…

---

## [Error with Flux.update! with Metal gpu backend](https://discourse.julialang.org/t/error-with-flux-update-with-metal-gpu-backend/102964)

<div class="topic-metadata">

**Author:** [@Bill\_Holmes](https://discourse.julialang.org/u/Bill_Holmes)\
**Replies:** 1\
**Last updated:** [August 19, 2023, 2:50pm UTC](https://discourse.julialang.org/t/error-with-flux-update-with-metal-gpu-backend/102964 "2023-08-19T14:50:54Z")

</div>

I’m trying to get Flux up and running with Metal as the gpu backend. The documentation for this is great, but I keep running into an issue. I’ve distilled the issue into a very simple FFNN. The code below, defines a simp…

---

## [Can OrdinaryDiffEq.jl solve Fillippov system?](https://discourse.julialang.org/t/can-ordinarydiffeq-jl-solve-fillippov-system/102818)

<div class="topic-metadata">

**Author:** [@xiaoming](https://discourse.julialang.org/u/xiaoming)\
**Replies:** 10\
**Last updated:** [August 19, 2023, 12:09pm UTC](https://discourse.julialang.org/t/can-ordinarydiffeq-jl-solve-fillippov-system/102818 "2023-08-19T12:09:52Z")

</div>

Fillippov systems are piecewise smooth ODEs and the solutions can slide along the switch surfaces. Here is an excellent illustration of such systems, taken from this page \[Events and Discontinuities in Differential Equat…

---

## [Check for Total Unimodularity of a Matrix](https://discourse.julialang.org/t/check-for-total-unimodularity-of-a-matrix/102908)

<div class="topic-metadata">

**Author:** [@TBuConst](https://discourse.julialang.org/u/TBuConst)\
**Replies:** 2\
**Last updated:** [August 19, 2023, 5:55am UTC](https://discourse.julialang.org/t/check-for-total-unimodularity-of-a-matrix/102908 "2023-08-19T05:55:43Z")

</div>

Hi everyone, I’m wondering whether a specif function exists in Julia or in a package. Say, I have a matrix M and I want to find out, whether it is totally unimodular or not. Is there any ready-to-use function comparable…

---

## [Loglikelihood vs logpdf](https://discourse.julialang.org/t/loglikelihood-vs-logpdf/102966)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 2\
**Last updated:** [August 19, 2023, 5:43am UTC](https://discourse.julialang.org/t/loglikelihood-vs-logpdf/102966 "2023-08-19T05:43:07Z")

</div>

What is the relationship between StatsAPI.loglikelihood(d, x) and Distributions.logpdf(d, x) where d::Distribution and x is a draw from it? In the examples I’ve tried, they give the same results. let d = Normal(0,1) …

---

## [Solving a differential equation with functions that defined on a finite range causes dtmin error](https://discourse.julialang.org/t/solving-a-differential-equation-with-functions-that-defined-on-a-finite-range-causes-dtmin-error/102963)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 1\
**Last updated:** [August 18, 2023, 9:52pm UTC](https://discourse.julialang.org/t/solving-a-differential-equation-with-functions-that-defined-on-a-finite-range-causes-dtmin-error/102963 "2023-08-18T21:52:56Z")

</div>

Like all of us, I am trying to solve a differential equation. I get errors that say the model is unstable: Warning: dt(1.88079096131566001274997845956e-37) \<= dtmin(1.88079096131566001274997845956e-37) at t=0.0297491697…

---

## [How to increase precision of solution using Roots.jl and ArbNumerics.jl](https://discourse.julialang.org/t/how-to-increase-precision-of-solution-using-roots-jl-and-arbnumerics-jl/102850)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 28\
**Last updated:** [August 18, 2023, 8:59pm UTC](https://discourse.julialang.org/t/how-to-increase-precision-of-solution-using-roots-jl-and-arbnumerics-jl/102850 "2023-08-18T20:59:06Z")

</div>

I am trying to increase precision for a numeric solution using Roots.jl using ArbFloat (of ArbNumerics.jl). But, when I decrease the tolerance, the outcome does not change. I keep comparing it to the numerical solution…

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

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