# Specific Domains

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

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

**Page:** 354

---

## [Accessing a specific layer's weights in a Flux Chain](https://discourse.julialang.org/t/accessing-a-specific-layers-weights-in-a-flux-chain/64180)

<div class="topic-metadata">

**Author:** [@bad\_at\_math](https://discourse.julialang.org/u/bad_at_math)\
**Replies:** 1\
**Last updated:** [July 7, 2021, 1:15am UTC](https://discourse.julialang.org/t/accessing-a-specific-layers-weights-in-a-flux-chain/64180 "2021-07-07T01:15:44Z")

</div>

In PyTorch, I can define a network like this: from torch import nn class Network(nn.Module): def \_\_init\_\_(self, ...): ... self.ln\_1 = nn.Linear(64, 32) self.ln\_2 = nn.Linear(32, 16) …

---

## [Performance overhead observed variables ModelingToolkit](https://discourse.julialang.org/t/performance-overhead-observed-variables-modelingtoolkit/64164)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 1\
**Last updated:** [July 6, 2021, 9:43pm UTC](https://discourse.julialang.org/t/performance-overhead-observed-variables-modelingtoolkit/64164 "2021-07-06T21:43:51Z")

</div>

Hi all, I am using ModelingToolkit to simulate a system and noticed that there seems to be a serious performance cost associated with using the nice observed variables functionality of ModelingToolkit. Here is a minimal …

---

## [Memory Allocation JuMP constraint!](https://discourse.julialang.org/t/memory-allocation-jump-constraint/64137)

<div class="topic-metadata">

**Author:** [@musman](https://discourse.julialang.org/u/musman)\
**Replies:** 1\
**Last updated:** [July 6, 2021, 9:25pm UTC](https://discourse.julialang.org/t/memory-allocation-jump-constraint/64137 "2021-07-06T21:25:42Z")

</div>

Hi all, I am implementing the following constraint which is allocating around 27MB of memory. for i in 1:nLines f\_bus = nw\_lines\[i\].line\_from t\_bus = nw\_lines\[i\].line\_to idx\_t\_bus = findall(x-\>x==t\_…

---

## [ODE solver fails with ForwardDiff, but works with central differences for first derivative of an input function](https://discourse.julialang.org/t/ode-solver-fails-with-forwarddiff-but-works-with-central-differences-for-first-derivative-of-an-input-function/63033)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 10\
**Last updated:** [July 6, 2021, 9:17pm UTC](https://discourse.julialang.org/t/ode-solver-fails-with-forwarddiff-but-works-with-central-differences-for-first-derivative-of-an-input-function/63033 "2021-07-06T21:17:35Z")

</div>

I am modelling the human cardiovascular system and solve equations similar to the windkessel equation in the example: # The 5-element WK formulation, also 4-element parallel for Ls = 0.0 function wk5(dP,…

---

## [Turing model that records objective function values](https://discourse.julialang.org/t/turing-model-that-records-objective-function-values/64167)

<div class="topic-metadata">

**Author:** [@pthompson234](https://discourse.julialang.org/u/pthompson234)\
**Replies:** 0\
**Last updated:** [July 6, 2021, 6:22pm UTC](https://discourse.julialang.org/t/turing-model-that-records-objective-function-values/64167 "2021-07-06T18:22:17Z")

</div>

Hi, this might be a bit of a silly question but I’m using Turing to run a Bayesian MCMC algorithm. I’m using a distribution I made up as the distribution of my response variable and I would like the chain object to store…

---

## [IntervalOptimisation surprising result](https://discourse.julialang.org/t/intervaloptimisation-surprising-result/64144)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 9\
**Last updated:** [July 6, 2021, 6:11pm UTC](https://discourse.julialang.org/t/intervaloptimisation-surprising-result/64144 "2021-07-06T18:11:08Z")

</div>

I need to find the maximiser and the maximum of functions that have a narrow bump. I had some issues with numerics, so I decided to try my luck with intervals. Here is a minimal working (?) example: using IntervalArith…

---

## [Memory allocation problem with Optim + ApproxFun](https://discourse.julialang.org/t/memory-allocation-problem-with-optim-approxfun/64084)

<div class="topic-metadata">

**Author:** [@dbennett1994](https://discourse.julialang.org/u/dbennett1994)\
**Replies:** 8\
**Last updated:** [July 6, 2021, 2:06pm UTC](https://discourse.julialang.org/t/memory-allocation-problem-with-optim-approxfun/64084 "2021-07-06T14:06:09Z")

</div>

Hi all. I’m quite new to Julia and this is my first post. I want to optimize a functional F\[\\phi\] = \\int\_0^1 \\left\[\\frac{1}{2}\\left(\\partial\_x \\phi\\right)^2 + V(x,\\phi(x))\\right\]\\text{d}x. Of course, this can be done by…

---

## [Reseting Device](https://discourse.julialang.org/t/reseting-device/63997)

<div class="topic-metadata">

**Author:** [@Fabrice\_Rosay](https://discourse.julialang.org/u/Fabrice_Rosay)\
**Replies:** 20\
**Last updated:** [July 6, 2021, 12:30pm UTC](https://discourse.julialang.org/t/reseting-device/63997 "2021-07-06T12:30:33Z")

</div>

Is there any way to reset device state, or at least wipe memory allocated, but keeping already compiled kernel ? I keep seeing slow down during iterated call to CUDA and those disapear if i stop and rerun the execution.…

---

## [Developing a Beginner's Roadmap to Learn Julia High Performance Computing for Data Science](https://discourse.julialang.org/t/developing-a-beginners-roadmap-to-learn-julia-high-performance-computing-for-data-science/63970)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 30\
**Last updated:** [July 5, 2021, 11:53pm UTC](https://discourse.julialang.org/t/developing-a-beginners-roadmap-to-learn-julia-high-performance-computing-for-data-science/63970 "2021-07-05T23:53:19Z")

</div>

Hi all :wave: Hope you are doing well! In alignment with both my professional and personal interests, I am slowly starting to turn my attention to the domain of High Performance Computing for the purposes of: Designin…

---

## [Learning Epidemic Model With Neural Differential Equations](https://discourse.julialang.org/t/learning-epidemic-model-with-neural-differential-equations/63386)

<div class="topic-metadata">

**Author:** [@bkuwahara](https://discourse.julialang.org/u/bkuwahara)\
**Replies:** 5\
**Last updated:** [July 5, 2021, 9:26pm UTC](https://discourse.julialang.org/t/learning-epidemic-model-with-neural-differential-equations/63386 "2021-07-05T21:26:22Z")

</div>

I’m trying to use neural networks with DiffEqFlux to learn an SIR model with vaccination dynamics. The equations for this model are function SIRx!(du, u, p, t) β, μ, γ, a, b = Float32.(\[280, 1/50, 365/22, 100, 0.05\]…

---

## [Using casadi from Julia](https://discourse.julialang.org/t/using-casadi-from-julia/63988)

<div class="topic-metadata">

**Author:** [@adityac](https://discourse.julialang.org/u/adityac)\
**Replies:** 11\
**Last updated:** [July 5, 2021, 2:47am UTC](https://discourse.julialang.org/t/using-casadi-from-julia/63988 "2021-07-05T02:47:25Z")

</div>

I am trying to use Casadi from Julia using the opti stack. I am trying to do this using PyCall. I get an error when I use the following code: opti = casadi.Opti(); x = opti.variable(); y = opti.variable(); opti.minimi…

---

## [\`CUDA.quicksort\` is not faster than CPU radixsort](https://discourse.julialang.org/t/cuda-quicksort-is-not-faster-than-cpu-radixsort/64036)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 3\
**Last updated:** [July 4, 2021, 7:53pm UTC](https://discourse.julialang.org/t/cuda-quicksort-is-not-faster-than-cpu-radixsort/64036 "2021-07-04T19:53:08Z")

</div>

Here’s my testing code using SortingAlgorithms a32 = rand(Float32, 10\_000\_000) @benchmark sort($a32, alg=RadixSort) using CUDA cua32 = cu(a32) @benchmark CUDA.@sync sort($cua32) So the on my GPU which is RT…

---

## [Gnuplot.jl + Windows 10: mouse can't zoom in/out](https://discourse.julialang.org/t/gnuplot-jl-windows-10-mouse-cant-zoom-in-out/64038)

<div class="topic-metadata">

**Author:** [@Inna](https://discourse.julialang.org/u/Inna)\
**Replies:** 4\
**Last updated:** [July 4, 2021, 6:31pm UTC](https://discourse.julialang.org/t/gnuplot-jl-windows-10-mouse-cant-zoom-in-out/64038 "2021-07-04T18:31:04Z")

</div>

Dear all, I have Windows 10 64-bit, gnuplot Version 5.4 patchlevel 1 (terminal qt) and Julia 1.6.1 with Gnuplot.jl v1.4.0 . When i use gnuplot without julia: gnuplot\> plot sin(x) i get the plot fine. Mouse can zoom …

---

## [Makie: Płot a number line](https://discourse.julialang.org/t/makie-plot-a-number-line/64032)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 1\
**Last updated:** [July 4, 2021, 2:10pm UTC](https://discourse.julialang.org/t/makie-plot-a-number-line/64032 "2021-07-04T14:10:47Z")

</div>

I just need a number line, like so Can I free that from the Axis object?

---

## [\[ANN\]: Announcing RxNav.jl interface to National Library of Medicine RxNav database](https://discourse.julialang.org/t/ann-announcing-rxnav-jl-interface-to-national-library-of-medicine-rxnav-database/64020)

<div class="topic-metadata">

**Author:** [@wherrera](https://discourse.julialang.org/u/wherrera)\
**Replies:** 0\
**Last updated:** [July 4, 2021, 5:27am UTC](https://discourse.julialang.org/t/ann-announcing-rxnav-jl-interface-to-national-library-of-medicine-rxnav-database/64020 "2021-07-04T05:27:18Z")

</div>

and

---

## [Learning and benchmarking resources](https://discourse.julialang.org/t/learning-and-benchmarking-resources/64018)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [July 4, 2021, 4:16am UTC](https://discourse.julialang.org/t/learning-and-benchmarking-resources/64018 "2021-07-04T04:16:30Z")

</div>

I saw a post in the Data domain saying it was hard to get resources to learn MPI programming. First off I am not promoting the company I work for (Dell). I like to connect people and to inspire people with possibilities …

---

## [ReinforcementLearning.jl I'm lost .. trying to implement an HVAC time to start system](https://discourse.julialang.org/t/reinforcementlearning-jl-im-lost-trying-to-implement-an-hvac-time-to-start-system/63941)

<div class="topic-metadata">

**Author:** [@mackyo123](https://discourse.julialang.org/u/mackyo123)\
**Replies:** 7\
**Last updated:** [July 4, 2021, 1:31am UTC](https://discourse.julialang.org/t/reinforcementlearning-jl-im-lost-trying-to-implement-an-hvac-time-to-start-system/63941 "2021-07-04T01:31:48Z")

</div>

I’m trying to figure out how to read in data from an HVAC system with 75 units with Zone Temperature (What the temperature is now) , Set Point(What the temperature needs to be at start time), Minutes till start time from…

---

## [SCIP solver presolve](https://discourse.julialang.org/t/scip-solver-presolve/63946)

<div class="topic-metadata">

**Author:** [@mjanun](https://discourse.julialang.org/u/mjanun)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 11:34pm UTC](https://discourse.julialang.org/t/scip-solver-presolve/63946 "2021-07-03T23:34:25Z")

</div>

SCIP presolve incorrectly returns some MILP and MINLP problems as infeasible or it gets stuck on presolving. I am trying to turn off presolve, but I am not sure which parameter to use. I have tried concurrent\_presolvebef…

---

## [CUDA.rand() returns duplicate columns](https://discourse.julialang.org/t/cuda-rand-returns-duplicate-columns/63993)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 8:51pm UTC](https://discourse.julialang.org/t/cuda-rand-returns-duplicate-columns/63993 "2021-07-03T20:51:34Z")

</div>

CUDA.rand() appears to return duplicate columns of complex numbers: julia\> CUDA.rand(ComplexF32, 512, 3) 512×3 CuArray{ComplexF32, 2}: 0.831271+0.460309im 0.831271+0.460309im 0.831271+0.460309im 0.0160654+0.0647…

---

## [HPV disease model estimation (beginner issue)](https://discourse.julialang.org/t/hpv-disease-model-estimation-beginner-issue/63981)

<div class="topic-metadata">

**Author:** [@Mevlut\_Cayli](https://discourse.julialang.org/u/Mevlut_Cayli)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 8:41pm UTC](https://discourse.julialang.org/t/hpv-disease-model-estimation-beginner-issue/63981 "2021-07-03T20:41:21Z")

</div>

\`Hi, I 'm trying to estimate HPV model parameters with Turing but I’m not sure about how to determine prior parameters especially with σ , so when I run the model it seems because of the bad selection of σ last parameter…

---

## [Solving two sparse linear systems one is the transpose of the other](https://discourse.julialang.org/t/solving-two-sparse-linear-systems-one-is-the-transpose-of-the-other/63984)

<div class="topic-metadata">

**Author:** [@Mohamed\_AbdElrahman](https://discourse.julialang.org/u/Mohamed_AbdElrahman)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 7:02pm UTC](https://discourse.julialang.org/t/solving-two-sparse-linear-systems-one-is-the-transpose-of-the-other/63984 "2021-07-03T19:02:59Z")

</div>

I’m solving two sparse linear systems (A^T) \* x\_1 = b\_1 and A \* x\_2 = b\_2. where A^T is the transpose of A and b\_1, b\_2 are different. With a direct LU solver. How can I factorize once and use it to solve the two li…

---

## [Status of math intrinsics](https://discourse.julialang.org/t/status-of-math-intrinsics/63990)

<div class="topic-metadata">

**Author:** [@shiroghost](https://discourse.julialang.org/u/shiroghost)\
**Replies:** 1\
**Last updated:** [July 3, 2021, 3:35pm UTC](https://discourse.julialang.org/t/status-of-math-intrinsics/63990 "2021-07-03T15:35:29Z")

</div>

Hi all, I would like to understand what is the status of math functions in CUDA.jl. In particular: Is it neccesary to write CUDA.sin? It looks to me that this calls are converted automatically when code is executed on…

---

## [Linear regression Gibbs sampler](https://discourse.julialang.org/t/linear-regression-gibbs-sampler/62817)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 11:06am UTC](https://discourse.julialang.org/t/linear-regression-gibbs-sampler/62817 "2021-07-03T11:06:53Z")

</div>

I tried to copy this Python sampler Gibbs sampling for Bayesian linear regression in Python | Kieran R Campbell - blog but my Julia implementation returns unexpected numbers. What am I doing wrong? using Distributions…

---

## [Modelling and Simulation: Regarding DDEs](https://discourse.julialang.org/t/modelling-and-simulation-regarding-ddes/63677)

<div class="topic-metadata">

**Author:** [@Phonindra](https://discourse.julialang.org/u/Phonindra)\
**Replies:** 19\
**Last updated:** [July 2, 2021, 10:43pm UTC](https://discourse.julialang.org/t/modelling-and-simulation-regarding-ddes/63677 "2021-07-02T22:43:13Z")

</div>

I was facing a problem regarding delay. For low delay e.g. tau = 0.101 the code was fine as tau increases slightly as tau = 0.104 or more it shows some error not exactly error but warning and shows no promising result. W…

---

## [Training an Autoencoder with Flux](https://discourse.julialang.org/t/training-an-autoencoder-with-flux/51619)

<div class="topic-metadata">

**Author:** [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Replies:** 2\
**Last updated:** [July 2, 2021, 6:12pm UTC](https://discourse.julialang.org/t/training-an-autoencoder-with-flux/51619 "2021-07-02T18:12:28Z")

</div>

Hi, I’m trying to train a simple Autoencoder with the objective of using it for data imputation. The idea is that I have matrix of count with zeros values that are caused by a lack of sensitivity of the detector and wan…

---

## [MCMC landscape](https://discourse.julialang.org/t/mcmc-landscape/25654)

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 99\
**Last updated:** [July 2, 2021, 4:04pm UTC](https://discourse.julialang.org/t/mcmc-landscape/25654 "2021-07-02T16:04:16Z")

</div>

We have been using Klara.jl for some of our projects, and are looking for alternatives (due to that package no longer being maintained). My sense is that Mamba.jl, Turing.jl and DynamicHMC.jl are the actively maintained…

---

## [(seems) a more efficient way to use diffEqOperator.jl](https://discourse.julialang.org/t/seems-a-more-efficient-way-to-use-diffeqoperator-jl/63506)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 5\
**Last updated:** [July 2, 2021, 12:12pm UTC](https://discourse.julialang.org/t/seems-a-more-efficient-way-to-use-diffeqoperator-jl/63506 "2021-07-02T12:12:04Z")

</div>

I found the derivative operators are not efficient, there seems to have a more efficient way to use. If I am wrong please tell me. For example when I have : dx = 0.01 x = dx:dx:0.3 Δ1 = UpwindDifference(1, 1, dx, lengt…

---

## [Drawing and animation, package recommendation](https://discourse.julialang.org/t/drawing-and-animation-package-recommendation/63917)

<div class="topic-metadata">

**Author:** [@Erasmo98](https://discourse.julialang.org/u/Erasmo98)\
**Replies:** 5\
**Last updated:** [July 2, 2021, 9:30am UTC](https://discourse.julialang.org/t/drawing-and-animation-package-recommendation/63917 "2021-07-02T09:30:49Z")

</div>

A friend of mine made this awsome image by hand using Windows Paint. Which package do you recommend me for drawing it and animating it? The animation would be of transformations of the original image. I’ve read that Cair…

---

## [Two Decimal Place Fixed Point Decimals a Necessary Feature](https://discourse.julialang.org/t/two-decimal-place-fixed-point-decimals-a-necessary-feature/63808)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 18\
**Last updated:** [July 2, 2021, 8:56am UTC](https://discourse.julialang.org/t/two-decimal-place-fixed-point-decimals-a-necessary-feature/63808 "2021-07-02T08:56:20Z")

</div>

For basic accounting in all countries that use a decimal currency, such as Dollars and Cents, all numbers are always two decimal places. For this reason, having a financial number type, that is always two decimals, woul…

---

## [Controling the shadows in 3D Makie visualizations](https://discourse.julialang.org/t/controling-the-shadows-in-3d-makie-visualizations/62796)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [July 2, 2021, 8:46am UTC](https://discourse.julialang.org/t/controling-the-shadows-in-3d-makie-visualizations/62796 "2021-07-02T08:46:17Z")

</div>

I am new to 3D visualization, and wonder how people usually control the “shadows”. When I visualize the grid below the colors are too dark as if the light source was behind the cube by default: Is there a recommended …

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

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