# Specific Domains

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

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

**Page:** 446

---

## [Du\[i\] not the same as integrator(t,Val{1})? DifferentialEquations.jl](https://discourse.julialang.org/t/du-i-not-the-same-as-integrator-t-val-1-differentialequations-jl/39616)

<div class="topic-metadata">

**Author:** [@ANasc](https://discourse.julialang.org/u/ANasc)\
**Replies:** 2\
**Last updated:** [May 17, 2020, 12:49pm UTC](https://discourse.julialang.org/t/du-i-not-the-same-as-integrator-t-val-1-differentialequations-jl/39616 "2020-05-17T12:49:59Z")

</div>

Hi All, I am playing with a basic SIR disease model and would like to make the transmission rate (Beta) depend on the rate at which the number of disease-related deaths changes. (e.g., when few deaths are occurring tr…

---

## [Crashes and high utilization while training with Flux with GPU](https://discourse.julialang.org/t/crashes-and-high-utilization-while-training-with-flux-with-gpu/39626)

<div class="topic-metadata">

**Author:** [@PeterKeffer](https://discourse.julialang.org/u/PeterKeffer)\
**Replies:** 2\
**Last updated:** [May 17, 2020, 12:40pm UTC](https://discourse.julialang.org/t/crashes-and-high-utilization-while-training-with-flux-with-gpu/39626 "2020-05-17T12:40:27Z")

</div>

Hey there lovely Julia community! I’m quite new to Julia, but I’m so excited about all the awesome packages and the wonderful community. I’ve already used PyTorch a lot, also with GPU on several machines, and got it alw…

---

## [Atomic operations issue on StaticArrays with CUDAnative](https://discourse.julialang.org/t/atomic-operations-issue-on-staticarrays-with-cudanative/39576)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 2\
**Last updated:** [May 17, 2020, 12:52am UTC](https://discourse.julialang.org/t/atomic-operations-issue-on-staticarrays-with-cudanative/39576 "2020-05-17T00:52:31Z")

</div>

Trying to perform a basic per element sum of two Vector of SVector works fine, but using the atomic\_add! resulted in an error. I’m aware that in this particlar case, an atomic operation isn’t needed, but it’s a MWE from …

---

## [This is how to call finite difference gradcheck on a model](https://discourse.julialang.org/t/this-is-how-to-call-finite-difference-gradcheck-on-a-model/39607)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 0\
**Last updated:** [May 17, 2020, 12:05am UTC](https://discourse.julialang.org/t/this-is-how-to-call-finite-difference-gradcheck-on-a-model/39607 "2020-05-17T00:05:16Z")

</div>

I learned of the undocumented gradcheck function in a recent question, but it was not clear how to apply it to a model (rather than an array). It requires the use of Flux.destructure., as mentioned in the recent pull req…

---

## [Nvidia TF32 format](https://discourse.julialang.org/t/nvidia-tf32-format/39515)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [May 16, 2020, 5:44pm UTC](https://discourse.julialang.org/t/nvidia-tf32-format/39515 "2020-05-16T17:44:21Z")

</div>

I guess we have all see they hype avbout the A100. Is this going to be useful for Julia GPU?

---

## [Weird font displaying in Plots](https://discourse.julialang.org/t/weird-font-displaying-in-plots/39590)

<div class="topic-metadata">

**Author:** [@mjyshin](https://discourse.julialang.org/u/mjyshin)\
**Replies:** 0\
**Last updated:** [May 16, 2020, 4:25pm UTC](https://discourse.julialang.org/t/weird-font-displaying-in-plots/39590 "2020-05-16T16:25:25Z")

</div>

I am not sure what happened, since I have been using Plots for years without too many issues. But since a few days ago, my plots have been displaying this strange font. All I remember doing right beforehand was updating …

---

## [Multivariate dirichlet mixture with Turing](https://discourse.julialang.org/t/multivariate-dirichlet-mixture-with-turing/39546)

<div class="topic-metadata">

**Author:** [@fooman](https://discourse.julialang.org/u/fooman)\
**Replies:** 6\
**Last updated:** [May 16, 2020, 3:06pm UTC](https://discourse.julialang.org/t/multivariate-dirichlet-mixture-with-turing/39546 "2020-05-16T15:06:18Z")

</div>

Hi – I’m trying to fit a mixture of 4 bivariate gaussians with Turing and getting a strange error? Can someone help with the syntax here: @model GaussianMixtureModel(x, K) = begin # K is expected number of clusters # …

---

## [Lend a hand on the Hessian of ordinal logistic regression](https://discourse.julialang.org/t/lend-a-hand-on-the-hessian-of-ordinal-logistic-regression/18842)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 13\
**Last updated:** [May 16, 2020, 2:47pm UTC](https://discourse.julialang.org/t/lend-a-hand-on-the-hessian-of-ordinal-logistic-regression/18842 "2020-05-16T14:47:51Z")

</div>

I am trying to port the ordinal logistic regression to a Fisher Scoring implementation. I need to validate the objective function, gradient, and hessian for these purposes. I am struggling with the Hessian and would appr…

---

## [NN: how to choose the layers/neurons?](https://discourse.julialang.org/t/nn-how-to-choose-the-layers-neurons/39530)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 3:45pm UTC](https://discourse.julialang.org/t/nn-how-to-choose-the-layers-neurons/39530 "2020-05-15T15:45:00Z")

</div>

I am implementing my own NN “library”, but I am stuck on which is the best way to then implement the network itself, i.e. which type of layers to use, how many and how many neurons. Let’s consider for example the follow…

---

## [Issues using Stan.jl on a cluster to run embarrassingly parallelisable experiments](https://discourse.julialang.org/t/issues-using-stan-jl-on-a-cluster-to-run-embarrassingly-parallelisable-experiments/39529)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 0\
**Last updated:** [May 15, 2020, 3:01pm UTC](https://discourse.julialang.org/t/issues-using-stan-jl-on-a-cluster-to-run-embarrassingly-parallelisable-experiments/39529 "2020-05-15T15:01:07Z")

</div>

Hi, So I have a working experiment of some Stan code on my local machine. But when I do wrap the main part in a pmap with an interior where I load in a series of models, then do sampling and write evaluation metrics to …

---

## [Flux: Scalar getindex error](https://discourse.julialang.org/t/flux-scalar-getindex-error/39451)

<div class="topic-metadata">

**Author:** [@Ching\_Lam\_Choi](https://discourse.julialang.org/u/Ching_Lam_Choi)\
**Replies:** 13\
**Last updated:** [May 15, 2020, 2:17pm UTC](https://discourse.julialang.org/t/flux-scalar-getindex-error/39451 "2020-05-15T14:17:22Z")

</div>

I am trying to do optimisation using Flux’s logitbinarycrossentropy function on a fully-convolutional network on GPU: Flux.train!(loss, params(UNet\_model), train\_batch, optimiser) Where loss is defined as: loss(x, y) …

---

## [\[ANN\] Turing.jl 0.12.0 release](https://discourse.julialang.org/t/ann-turing-jl-0-12-0-release/38927)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 5\
**Last updated:** [May 14, 2020, 6:31pm UTC](https://discourse.julialang.org/t/ann-turing-jl-0-12-0-release/38927 "2020-05-14T18:31:30Z")

</div>

Hey folks. Turing 0.12.0 is out, and it comes with a lovely set of changes and updates. There are some deprecations and API changes, so please read carefully if 1) you use custom distributions or 2) you use the paralle…

---

## [Calculate λ with known cdf](https://discourse.julialang.org/t/calculate-with-known-cdf/39463)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 2\
**Last updated:** [May 14, 2020, 1:19pm UTC](https://discourse.julialang.org/t/calculate-with-known-cdf/39463 "2020-05-14T13:19:55Z")

</div>

X follows Poisson distribution, X = Poisson(λ) , how to calculate λ if we know the probability of x being 3 or less is 0.82, that is cdf(X,3) = 0.82 . is there any syntax or solver?

---

## [Code that works fine locally causes an error on a cluster](https://discourse.julialang.org/t/code-that-works-fine-locally-causes-an-error-on-a-cluster/39452)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 3\
**Last updated:** [May 14, 2020, 10:54am UTC](https://discourse.julialang.org/t/code-that-works-fine-locally-causes-an-error-on-a-cluster/39452 "2020-05-14T10:54:06Z")

</div>

Hi, so I have a function in my code to calculate the ROC AUC following an experiment, this has worked fine for me and continues to work fine locally but on our cluster I get the following error: ERROR: LoadError: On wor…

---

## [Flux convolutional layer not type stable](https://discourse.julialang.org/t/flux-convolutional-layer-not-type-stable/39454)

<div class="topic-metadata">

**Author:** [@LeoKoo](https://discourse.julialang.org/u/LeoKoo)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 9:55am UTC](https://discourse.julialang.org/t/flux-convolutional-layer-not-type-stable/39454 "2020-05-14T09:55:18Z")

</div>

In my spare time I am trying to implement YOLOv3 using Flux. I believe I’ve successfully defined the model, leaving me to find a way to translate the YOLOv3 pretrained weights into Flux. However, I have noticed, using ra…

---

## [Yolo darknet](https://discourse.julialang.org/t/yolo-darknet/21454)

<div class="topic-metadata">

**Author:** [@yash](https://discourse.julialang.org/u/yash)\
**Replies:** 6\
**Last updated:** [March 10, 2019, 12:24am UTC](https://discourse.julialang.org/t/yolo-darknet/21454 "2019-03-10T00:24:55Z")

</div>

YOLO stands for “You only look once” is currently is state-of-the-art for real time object recognition. As compared other algorithm like R CNN , mask RCNN and other Computer vision methods it is very fast to detect mult…

---

## [Tiled matrix multiplication](https://discourse.julialang.org/t/tiled-matrix-multiplication/38431)

<div class="topic-metadata">

**Author:** [@Matt\_Davis](https://discourse.julialang.org/u/Matt_Davis)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 3:30am UTC](https://discourse.julialang.org/t/tiled-matrix-multiplication/38431 "2020-05-14T03:30:58Z")

</div>

Hello, I would like to accelerate multiplication of matrices that are larger than can fit in VRAM, but can fit in normal RAM. I would like to eventually extend this to general tensor contractions as well, but for now I …

---

## [InteractiveUtils is not aware of CuDevice type](https://discourse.julialang.org/t/interactiveutils-is-not-aware-of-cudevice-type/39358)

<div class="topic-metadata">

**Author:** [@bocc](https://discourse.julialang.org/u/bocc)\
**Replies:** 2\
**Last updated:** [May 13, 2020, 7:11pm UTC](https://discourse.julialang.org/t/interactiveutils-is-not-aware-of-cudevice-type/39358 "2020-05-13T19:11:20Z")

</div>

Hello there, it seems that the info methods provided by InteractiveUtils do not work with the CuDevice type. For example, in the following code using CUDAdrv dev = first(devices()) methodswith(dev) methods(capabilit…

---

## [Weird interplay between scale and lightposition in Makie](https://discourse.julialang.org/t/weird-interplay-between-scale-and-lightposition-in-makie/39363)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 1\
**Last updated:** [May 13, 2020, 4:33pm UTC](https://discourse.julialang.org/t/weird-interplay-between-scale-and-lightposition-in-makie/39363 "2020-05-13T16:33:12Z")

</div>

I was drawing a surface plot of some configuration of a quantum system, using the following code: using Makie l = w = 30.0 p = m = 120 x=l\*\[(i-0.5)/p-0.5 for i = 1:p\] #x ranges in (-15,15) y=w\*\[(i-0.5)/m-0.5 for i …

---

## [Objective function "limit reached" status in JuMP](https://discourse.julialang.org/t/objective-function-limit-reached-status-in-jump/39349)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 5\
**Last updated:** [May 13, 2020, 2:46pm UTC](https://discourse.julialang.org/t/objective-function-limit-reached-status-in-jump/39349 "2020-05-13T14:46:43Z")

</div>

Hi, Can JuMP report that an objective function has reached some predefined limit? My problem looks the following. I am looking for a Min or Max value of a variable x\[1\] within the bounds (lets say \[1e-9,1e9\]) w.r.t som…

---

## [Type instability with Dirichlet distribution in Turing](https://discourse.julialang.org/t/type-instability-with-dirichlet-distribution-in-turing/39300)

<div class="topic-metadata">

**Author:** [@ElOceanografo](https://discourse.julialang.org/u/ElOceanografo)\
**Replies:** 3\
**Last updated:** [May 12, 2020, 4:26pm UTC](https://discourse.julialang.org/t/type-instability-with-dirichlet-distribution-in-turing/39300 "2020-05-12T16:26:52Z")

</div>

I’m fitting a marginalized Gaussian mixture model with Turing, and the sampler is running very slowly. Looking at the output of @code\_warntype, it appears that drawing the mixture weights from a Dirichlet distribution i…

---

## [Naming output files from processes spawned using addprocs\_slurm on a cluster](https://discourse.julialang.org/t/naming-output-files-from-processes-spawned-using-addprocs-slurm-on-a-cluster/39174)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 1\
**Last updated:** [May 12, 2020, 2:14pm UTC](https://discourse.julialang.org/t/naming-output-files-from-processes-spawned-using-addprocs-slurm-on-a-cluster/39174 "2020-05-12T14:14:00Z")

</div>

Hi, I am running some distributed code using ClusterManagers.jl’s addprocs\_slurm command to spawn processes after submitting an sbatch script on our cluster’s login node. I can happily rename the output file for the “hea…

---

## [Linprog and Clp under JuMP or MathOptInterface - Why is it so hard?](https://discourse.julialang.org/t/linprog-and-clp-under-jump-or-mathoptinterface-why-is-it-so-hard/39323)

<div class="topic-metadata">

**Author:** [@scotts](https://discourse.julialang.org/u/scotts)\
**Replies:** 2\
**Last updated:** [May 12, 2020, 8:33am UTC](https://discourse.julialang.org/t/linprog-and-clp-under-jump-or-mathoptinterface-why-is-it-so-hard/39323 "2020-05-12T08:33:19Z")

</div>

Julia is working beautifully on an LP problem on my mac. My optimisation problem is structured with inequality constraints and the sense vector: sol = linprog(-f,A,sense,b,lb,ub,ClpSolver()) For some reason running t…

---

## [Timing Clebsch-Gordan-coefficients calls in Julia (beating c++ again)](https://discourse.julialang.org/t/timing-clebsch-gordan-coefficients-calls-in-julia-beating-c-again/32736)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 7\
**Last updated:** [May 12, 2020, 8:45am UTC](https://discourse.julialang.org/t/timing-clebsch-gordan-coefficients-calls-in-julia-beating-c-again/32736 "2020-05-12T08:45:34Z")

</div>

I have compared 4 different implementations of the Clebsch-Gordan coefficients freshly coded in my ThreeBodyDecay.jl package from GSL.jl call (c++ implementation) from SymPy.jl (for the sake of completeness) julia pac…

---

## [Sparse matrix and zero pivots](https://discourse.julialang.org/t/sparse-matrix-and-zero-pivots/39332)

<div class="topic-metadata">

**Author:** [@Mirsad\_Cosovic](https://discourse.julialang.org/u/Mirsad_Cosovic)\
**Replies:** 2\
**Last updated:** [May 12, 2020, 8:24am UTC](https://discourse.julialang.org/t/sparse-matrix-and-zero-pivots/39332 "2020-05-12T08:24:20Z")

</div>

I have a large sparse matrix and I need to find a position of zero pivots, so my matrix is singular. Standard QR factorization for dense matrices without permutations gives the result that I need, the pivots are on the m…

---

## [Regression Workflow](https://discourse.julialang.org/t/regression-workflow/39071)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 6\
**Last updated:** [May 12, 2020, 7:36am UTC](https://discourse.julialang.org/t/regression-workflow/39071 "2020-05-12T07:36:27Z")

</div>

Hi everyone, So far I did not succeed in moving my empirical workflow to Julia: Data cleaning (Query.jl/DataFrames.jl) → Regression (GLM.jl) → Custom Standard Errors (CovarianceMatrices.jl) ??? Latex-Regressiontable (R…

---

## [How to choose a nonlinear optimizer (ecosystem)?](https://discourse.julialang.org/t/how-to-choose-a-nonlinear-optimizer-ecosystem/39231)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 7\
**Last updated:** [May 11, 2020, 6:50pm UTC](https://discourse.julialang.org/t/how-to-choose-a-nonlinear-optimizer-ecosystem/39231 "2020-05-11T18:50:09Z")

</div>

At work, we currently use JuMP + Gurobi to solve fairly large LPs in production. These LPs are linear approximations of much smaller nonlinear problems. For several reasons including “Gurobi is expensive” and “this appro…

---

## [Preconditioner for L-BFGS in Optim.jl](https://discourse.julialang.org/t/preconditioner-for-l-bfgs-in-optim-jl/39167)

<div class="topic-metadata">

**Author:** [@cpross90](https://discourse.julialang.org/u/cpross90)\
**Replies:** 17\
**Last updated:** [May 11, 2020, 6:45pm UTC](https://discourse.julialang.org/t/preconditioner-for-l-bfgs-in-optim-jl/39167 "2020-05-11T18:45:54Z")

</div>

I’m stumped, and I’m not sure if my problem is a lack of understanding of the L-BFGS implementation or the Optim.jl interface. I’m trying to figure out how to create a preconditioner such that it is equivalent to the ap…

---

## [How to query elements in a matrix diagonal to a given point](https://discourse.julialang.org/t/how-to-query-elements-in-a-matrix-diagonal-to-a-given-point/39253)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 8\
**Last updated:** [May 11, 2020, 5:13pm UTC](https://discourse.julialang.org/t/how-to-query-elements-in-a-matrix-diagonal-to-a-given-point/39253 "2020-05-11T17:13:56Z")

</div>

I’m wondering if there’s an efficient way to return all of the elements in a matrix that are diagonal to some starting point. For example, given the following matrix: julia\> A = \[1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 1…

---

## [Networkx & lightgraphs.jl shortest path benchmark](https://discourse.julialang.org/t/networkx-lightgraphs-jl-shortest-path-benchmark/39245)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 7\
**Last updated:** [May 11, 2020, 4:36pm UTC](https://discourse.julialang.org/t/networkx-lightgraphs-jl-shortest-path-benchmark/39245 "2020-05-11T16:36:20Z")

</div>

I have developped a small package (GraphMLReader.jl ) to load GraphML file to MetaGraph, which keep all the attributes of nodes and edges. I compare the speed of reading GraphML file and dijkstra shortest path of network…

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

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