# Specific Domains

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

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

**Page:** 315

---

## [Zygote/Flux not computing gradient with view/slice of tensor properly for MLP](https://discourse.julialang.org/t/zygote-flux-not-computing-gradient-with-view-slice-of-tensor-properly-for-mlp/67835)

<div class="topic-metadata">

**Author:** [@outlace](https://discourse.julialang.org/u/outlace)\
**Replies:** 19\
**Last updated:** [December 20, 2021, 4:57pm UTC](https://discourse.julialang.org/t/zygote-flux-not-computing-gradient-with-view-slice-of-tensor-properly-for-mlp/67835 "2021-12-20T16:57:02Z")

</div>

I am working on an implementation of an ML algorithm called SLIDE (sub-linear deep learning engine) from an academic paper. I’ve included a link to a gist of the code: https://gist.github.com/outlace/c81a15ab77c1c9cebb56…

---

## [Dropout for the recurrent signal on LSTM units](https://discourse.julialang.org/t/dropout-for-the-recurrent-signal-on-lstm-units/73335)

<div class="topic-metadata">

**Author:** [@Maxim\_Lubov](https://discourse.julialang.org/u/Maxim_Lubov)\
**Replies:** 1\
**Last updated:** [December 20, 2021, 4:26pm UTC](https://discourse.julialang.org/t/dropout-for-the-recurrent-signal-on-lstm-units/73335 "2021-12-20T16:26:40Z")

</div>

Is there a possibility in Flux to apply dropout procedure to the recurrent input signal on the LSTM units, like recurrent\_dropout in Keras?

---

## [Computing discrete Wasserstein (EMD) distance in Julia?](https://discourse.julialang.org/t/computing-discrete-wasserstein-emd-distance-in-julia/9600)

<div class="topic-metadata">

**Author:** [@raff](https://discourse.julialang.org/u/raff)\
**Replies:** 16\
**Last updated:** [December 20, 2021, 3:49pm UTC](https://discourse.julialang.org/t/computing-discrete-wasserstein-emd-distance-in-julia/9600 "2021-12-20T15:49:47Z")

</div>

Is there any library in Julia for computing discrete Wasserstein (EMD) given two discrete distributions? Python seems to have a tool for that http://pot.readthedocs.io/en/stable/index.html, but if a pure Julia solution …

---

## [Thickness\_scaling creates unwanted wide left margin](https://discourse.julialang.org/t/thickness-scaling-creates-unwanted-wide-left-margin/73361)

<div class="topic-metadata">

**Author:** [@parb](https://discourse.julialang.org/u/parb)\
**Replies:** 1\
**Last updated:** [December 20, 2021, 3:49pm UTC](https://discourse.julialang.org/t/thickness-scaling-creates-unwanted-wide-left-margin/73361 "2021-12-20T15:49:42Z")

</div>

Hi all When using thickness\_scaling=2, a wide left and bottom margins are added to the plot. These margins cannot be reduced with the margins attribute. How do I remove the margins created by using thickness\_scaling? u…

---

## [Changing strings at the beginning of a large file](https://discourse.julialang.org/t/changing-strings-at-the-beginning-of-a-large-file/73365)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 12\
**Last updated:** [December 20, 2021, 3:32pm UTC](https://discourse.julialang.org/t/changing-strings-at-the-beginning-of-a-large-file/73365 "2021-12-20T15:32:47Z")

</div>

Hi ! I have large CSV/TSV tables and I want to change some column names using a Julia program. I think that loading these large tables into DataFrames will consume a lot or RAM and be slow as well. My idea was to use r…

---

## [Functions to merge DataFrames by nearest date that is earlier?](https://discourse.julialang.org/t/functions-to-merge-dataframes-by-nearest-date-that-is-earlier/73195)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [December 20, 2021, 3:58am UTC](https://discourse.julialang.org/t/functions-to-merge-dataframes-by-nearest-date-that-is-earlier/73195 "2021-12-20T03:58:52Z")

</div>

Say I have two dataframes but I wish to join them such that val2 from Table 2 is merge on to Table 1 if and only if Table2.date \< Table1.date and Table2.date is the closest to Table1.date Table 1 date, val1 2021-12-16,…

---

## [Training a MLJ model on a large dataset](https://discourse.julialang.org/t/training-a-mlj-model-on-a-large-dataset/73321)

<div class="topic-metadata">

**Author:** [@jlwoolf](https://discourse.julialang.org/u/jlwoolf)\
**Replies:** 2\
**Last updated:** [December 19, 2021, 7:44pm UTC](https://discourse.julialang.org/t/training-a-mlj-model-on-a-large-dataset/73321 "2021-12-19T19:44:26Z")

</div>

Hello, I am somewhat new to Julia and the MLJ library. I am currently using a preexisting model, and would like to train it on a large dataset. However, I am running out of memory when calling fit with all the data. Eac…

---

## [Write-out simulation data from Julia to other file formats (JSON, …)](https://discourse.julialang.org/t/write-out-simulation-data-from-julia-to-other-file-formats-json/73341)

<div class="topic-metadata">

**Author:** [@Chimel](https://discourse.julialang.org/u/Chimel)\
**Replies:** 2\
**Last updated:** [December 19, 2021, 7:27pm UTC](https://discourse.julialang.org/t/write-out-simulation-data-from-julia-to-other-file-formats-json/73341 "2021-12-19T19:27:10Z")

</div>

Hello, Is there a tool/method to write-out simulation data to other formats such as: JSON, yaml, xml, text files, csv, vdb, alembic (abc), lossless image file, exr, fbx, obj, gltf, hdf5? So that it can be imported into…

---

## [Invalid index error using EAGO solver](https://discourse.julialang.org/t/invalid-index-error-using-eago-solver/73302)

<div class="topic-metadata">

**Author:** [@FH96](https://discourse.julialang.org/u/FH96)\
**Replies:** 3\
**Last updated:** [December 19, 2021, 5:45am UTC](https://discourse.julialang.org/t/invalid-index-error-using-eago-solver/73302 "2021-12-19T05:45:57Z")

</div>

Trying to solve a QP with EAGO I face this error LoadError: The index MathOptInterface.ConstraintIndex{MathOptInterface.SingleVariable, MathOptInterface.GreaterThan{Float64}}(-1) is invalid. Note that an index become…

---

## [Turing model producing unexpected summary statistics](https://discourse.julialang.org/t/turing-model-producing-unexpected-summary-statistics/73312)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [December 19, 2021, 2:25am UTC](https://discourse.julialang.org/t/turing-model-producing-unexpected-summary-statistics/73312 "2021-12-19T02:25:58Z")

</div>

I have a very simple Turing model where all variables are Normal or TruncatedNormal. For some reason, the summary statistics of the model are not the ones I expected. Can you please help with this MWE? using Turing usin…

---

## [Simple Vulkan tutorial? Ideally integrated with CImGUI.jl](https://discourse.julialang.org/t/simple-vulkan-tutorial-ideally-integrated-with-cimgui-jl/73267)

<div class="topic-metadata">

**Author:** [@claforte](https://discourse.julialang.org/u/claforte)\
**Replies:** 1\
**Last updated:** [December 18, 2021, 6:36am UTC](https://discourse.julialang.org/t/simple-vulkan-tutorial-ideally-integrated-with-cimgui-jl/73267 "2021-12-18T06:36:31Z")

</div>

Is anyone aware of an existing tutorial that combines Vulkan.jl and ideally CImGUI.jl? If not, I might bite the bullet during the Christmas vacations and try to do it myself, and if so, keep posting to this discussion (i…

---

## [Selecting rows from a data frame using multiple conditions](https://discourse.julialang.org/t/selecting-rows-from-a-data-frame-using-multiple-conditions/73282)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 1\
**Last updated:** [December 17, 2021, 9:07pm UTC](https://discourse.julialang.org/t/selecting-rows-from-a-data-frame-using-multiple-conditions/73282 "2021-12-17T21:07:22Z")

</div>

I want to select rows from a data frame using multiple conditions This works with only one condition: d\_f = DataFrame(A=\[ 1, 3, 4, 7, 9\], B=\["a", "c", "c", "D", "c"\]) d\_f\[(d\_f.B .== "c"), :\] Adding a second, this does…

---

## [Best Way of Handling Shapefiles in Makie](https://discourse.julialang.org/t/best-way-of-handling-shapefiles-in-makie/71028)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 12\
**Last updated:** [December 17, 2021, 5:06pm UTC](https://discourse.julialang.org/t/best-way-of-handling-shapefiles-in-makie/71028 "2021-12-17T17:06:56Z")

</div>

Hi all, What is the best way handle shapefiles with Makie? For example, I have a shapefile that defines the states for each state in the United States. DataFrames can handle displaying the shapefile as follows: julia\>s…

---

## [Image peak finder with thresholding and minimum distance](https://discourse.julialang.org/t/image-peak-finder-with-thresholding-and-minimum-distance/73268)

<div class="topic-metadata">

**Author:** [@Aju](https://discourse.julialang.org/u/Aju)\
**Replies:** 0\
**Last updated:** [December 17, 2021, 3:55pm UTC](https://discourse.julialang.org/t/image-peak-finder-with-thresholding-and-minimum-distance/73268 "2021-12-17T15:55:17Z")

</div>

Hi, could any suggest to me a peak finder function for a 2D image with options to input threshold value for peak finding and option to enter minimum spacing between the peaks? I am effectively looking for an Julia func…

---

## [Stipple: ReactiveModel type Name has no field channel\_\_](https://discourse.julialang.org/t/stipple-reactivemodel-type-name-has-no-field-channel/73159)

<div class="topic-metadata">

**Author:** [@mde](https://discourse.julialang.org/u/mde)\
**Replies:** 1\
**Last updated:** [December 17, 2021, 10:12am UTC](https://discourse.julialang.org/t/stipple-reactivemodel-type-name-has-no-field-channel/73159 "2021-12-17T10:12:47Z")

</div>

Using the HelloStipple example (or any other), I get the following error when trying to run it. Additionally, there is a warning that the init method used is deprecated, but I cannot find any documentation of the updated…

---

## [Makie: Labels are bold face](https://discourse.julialang.org/t/makie-labels-are-bold-face/73205)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 2\
**Last updated:** [December 17, 2021, 6:41am UTC](https://discourse.julialang.org/t/makie-labels-are-bold-face/73205 "2021-12-17T06:41:58Z")

</div>

Consider the figure Somehow the \\gamma\_d labels are displayed as bold face, even though there is no other font or so specified. The axis labels and the titles are created with latex strings during the creation of the…

---

## [New package DependentBootstrap](https://discourse.julialang.org/t/new-package-dependentbootstrap/312)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 3\
**Last updated:** [December 17, 2021, 4:09am UTC](https://discourse.julialang.org/t/new-package-dependentbootstrap/312 "2021-12-17T04:09:47Z")

</div>

Hi all, A little under a year ago I wrote a package that implements various dependent bootstrap and block length selection methodologies in Julia, but didn’t register it. I’ve been using it for the past year, and based …

---

## [Log determinant objective](https://discourse.julialang.org/t/log-determinant-objective/23927)

<div class="topic-metadata">

**Author:** [@Ksun46](https://discourse.julialang.org/u/Ksun46)\
**Replies:** 6\
**Last updated:** [December 16, 2021, 10:31pm UTC](https://discourse.julialang.org/t/log-determinant-objective/23927 "2021-12-16T22:31:38Z")

</div>

Any recommendations on how to formulate a log determinant objective in JuMP? Thanks.

---

## [Automatic/Black-box variational inference replication vs Autograd](https://discourse.julialang.org/t/automatic-black-box-variational-inference-replication-vs-autograd/73020)

<div class="topic-metadata">

**Author:** [@lf28](https://discourse.julialang.org/u/lf28)\
**Replies:** 9\
**Last updated:** [December 16, 2021, 10:25pm UTC](https://discourse.julialang.org/t/automatic-black-box-variational-inference-replication-vs-autograd/73020 "2021-12-16T22:25:26Z")

</div>

Hello all, I have been trying to replicate a simple example (Fig 2) presented in the paper: Black-box stochastic variational inference in five lines of Python (https://www.cs.toronto.edu/~duvenaud/papers/blackbox.pdf). …

---

## [Different results when registering the log-likelihood function vs pasting its contents](https://discourse.julialang.org/t/different-results-when-registering-the-log-likelihood-function-vs-pasting-its-contents/73214)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 3\
**Last updated:** [December 16, 2021, 7:27pm UTC](https://discourse.julialang.org/t/different-results-when-registering-the-log-likelihood-function-vs-pasting-its-contents/73214 "2021-12-16T19:27:37Z")

</div>

I’m trying to optimize this log-likelihood function: -log(σ^2) / 2 - ϵ^2 / 2 + log( 2Φ(a \* ϵ) ) Here ϵ depends on data and some more parameters. I’m trying to optimize this in two ways: Put the sum of these likelih…

---

## [Future of COIN-OR (Cbc, Clp, Ipopt)](https://discourse.julialang.org/t/future-of-coin-or-cbc-clp-ipopt/73223)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 0\
**Last updated:** [December 16, 2021, 7:07pm UTC](https://discourse.julialang.org/t/future-of-coin-or-cbc-clp-ipopt/73223 "2021-12-16T19:07:59Z")

</div>

Dear all, If you use any of the COIN-OR solvers (Cbc, Clp, Ipopt, Bonmin, or Couenne), please take a moment to read: Oscar

---

## [Serialized and deserialized JuMP CPLEX models are not the same](https://discourse.julialang.org/t/serialized-and-deserialized-jump-cplex-models-are-not-the-same/73194)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 1\
**Last updated:** [December 16, 2021, 5:36pm UTC](https://discourse.julialang.org/t/serialized-and-deserialized-jump-cplex-models-are-not-the-same/73194 "2021-12-16T17:36:57Z")

</div>

I want to run some long simulations with JuMP. After the simulations ends, I will start with the metaanalysis. So what I wanted to do is store the solved model in the filesystem and analyze it afterwards. During my pre-…

---

## [Is there a lazy version of graph?](https://discourse.julialang.org/t/is-there-a-lazy-version-of-graph/73119)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 7\
**Last updated:** [December 16, 2021, 3:55pm UTC](https://discourse.julialang.org/t/is-there-a-lazy-version-of-graph/73119 "2021-12-16T15:55:06Z")

</div>

I came across an interesting problem recently that can be solved with the shortest path algorithms from Graphs.jl. The only problem is that it takes a “long time” (julia scale :slight\_smile: ) to build the graph because …

---

## [Problem with Zygote gradient](https://discourse.julialang.org/t/problem-with-zygote-gradient/72449)

<div class="topic-metadata">

**Author:** [@mottelet](https://discourse.julialang.org/u/mottelet)\
**Replies:** 10\
**Last updated:** [December 16, 2021, 12:41pm UTC](https://discourse.julialang.org/t/problem-with-zygote-gradient/72449 "2021-12-16T12:41:57Z")

</div>

Hi all, I work with Julia 1.7. Zygote fails to generate/compute my AD gradient in the code below (the loss function itself works well). The message is the following : ERROR: LoadError: Need an adjoint for constructor D…

---

## [Stochastic diff eq driven by 1/f noise](https://discourse.julialang.org/t/stochastic-diff-eq-driven-by-1-f-noise/72669)

<div class="topic-metadata">

**Author:** [@arnelg](https://discourse.julialang.org/u/arnelg)\
**Replies:** 5\
**Last updated:** [December 16, 2021, 12:19pm UTC](https://discourse.julialang.org/t/stochastic-diff-eq-driven-by-1-f-noise/72669 "2021-12-16T12:19:27Z")

</div>

Hi all, I’m new to DifferentialEquations.jl and looking for tips on how model a stochastic process driven by noise that has a 1/f spectrum. Admittedly, this question might be not only on how to use the Julia stochastic d…

---

## [How to reality-chek a working ODE model made with DifferentialEquations?](https://discourse.julialang.org/t/how-to-reality-chek-a-working-ode-model-made-with-differentialequations/73190)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [December 16, 2021, 11:26am UTC](https://discourse.julialang.org/t/how-to-reality-chek-a-working-ode-model-made-with-differentialequations/73190 "2021-12-16T11:26:43Z")

</div>

Hello, I have made a simulation of bacterial infection. I am focusing on the induction of phages. The system works but I am not sure about the results. Even if I activate 400 000 hosts at t=250 (that is, 96.6% of the ba…

---

## [Neural SDE vs Neural ODE](https://discourse.julialang.org/t/neural-sde-vs-neural-ode/73189)

<div class="topic-metadata">

**Author:** [@ignace](https://discourse.julialang.org/u/ignace)\
**Replies:** 2\
**Last updated:** [December 16, 2021, 11:24am UTC](https://discourse.julialang.org/t/neural-sde-vs-neural-ode/73189 "2021-12-16T11:24:10Z")

</div>

May I please ask a question, please redirect me when this is the wrong place to ask :slight\_smile: What is the main (dis)advantage of neural SDEs over neural ODEs? Can they somehow tackle ‘more difficult’ problems or s…

---

## [Weird error with CUDA.jl on Julia1.7. Cannot rewrite unknown use of function](https://discourse.julialang.org/t/weird-error-with-cuda-jl-on-julia1-7-cannot-rewrite-unknown-use-of-function/73183)

<div class="topic-metadata">

**Author:** [@Alexandre\_Chen](https://discourse.julialang.org/u/Alexandre_Chen)\
**Replies:** 2\
**Last updated:** [December 16, 2021, 10:45am UTC](https://discourse.julialang.org/t/weird-error-with-cuda-jl-on-julia1-7-cannot-rewrite-unknown-use-of-function/73183 "2021-12-16T10:45:36Z")

</div>

julia\> a = CuArray(randn(32,32)) 32×32 CuArray{Float64, 2, CUDA.Mem.DeviceBuffer}: -1.18274 0.255296 -0.638661 -0.360422 1.36684 1.33303 -0.0344325 -2.70717 0.781341 0.288144 0.0181823 …

---

## [Collect model outputs into multi-dimensional array](https://discourse.julialang.org/t/collect-model-outputs-into-multi-dimensional-array/72977)

<div class="topic-metadata">

**Author:** [@Tengrath](https://discourse.julialang.org/u/Tengrath)\
**Replies:** 5\
**Last updated:** [December 16, 2021, 10:25am UTC](https://discourse.julialang.org/t/collect-model-outputs-into-multi-dimensional-array/72977 "2021-12-16T10:25:42Z")

</div>

Consider the following model which creates an output after every layer ’ function track(model, input) track::Vector{Vector{Float64}} = p = input for layer in model p = layer(p) track = vcat(track, \[p,\]) end …

---

## [Variational Inference of Mixture models?](https://discourse.julialang.org/t/variational-inference-of-mixture-models/40031)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 8\
**Last updated:** [December 16, 2021, 10:06am UTC](https://discourse.julialang.org/t/variational-inference-of-mixture-models/40031 "2021-12-16T10:06:31Z")

</div>

I’m just cutting my teeth on Turing. (BTW, thanks for this amazing software.) Does Turing support VI of mixture models? I attempted advi against a gaussian mixture model, but without success as below. The error occurred…

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

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