# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?page=338

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

**Page:** 339

---

## [How to create JuMP expressions without adding them to a model?](https://discourse.julialang.org/t/how-to-create-jump-expressions-without-adding-them-to-a-model/68012)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 5\
**Last updated:** [September 11, 2021, 11:56am UTC](https://discourse.julialang.org/t/how-to-create-jump-expressions-without-adding-them-to-a-model/68012 "2021-09-11T11:56:27Z")

</div>

I’m trying to build a GARCH(1, 1) model, and this requires recursively constructing the variance: \\sigma\_t^2 = \\alpha + \\beta \\epsilon\_{t-1}^2 + \\gamma \\sigma\_{t-1}^2 Since the variances are unobserved (only the epsil…

---

## [Large-scale least squares with ModelingToolkit.jl?](https://discourse.julialang.org/t/large-scale-least-squares-with-modelingtoolkit-jl/67957)

<div class="topic-metadata">

**Author:** [@twadleigh](https://discourse.julialang.org/u/twadleigh)\
**Replies:** 1\
**Last updated:** [September 11, 2021, 2:15am UTC](https://discourse.julialang.org/t/large-scale-least-squares-with-modelingtoolkit-jl/67957 "2021-09-11T02:15:07Z")

</div>

I’m starting to dig deep into ModelingToolkit.jl with the intention of using it to model a version of the SLAM problem. Ultimately, SLAM problems end up looking like large-scale nonlinear least squares problems. Instead …

---

## [GLMakie text plots and LaTeXStrings](https://discourse.julialang.org/t/glmakie-text-plots-and-latexstrings/68014)

<div class="topic-metadata">

**Author:** [@JCQ](https://discourse.julialang.org/u/JCQ)\
**Replies:** 0\
**Last updated:** [September 11, 2021, 2:15am UTC](https://discourse.julialang.org/t/glmakie-text-plots-and-latexstrings/68014 "2021-09-11T02:15:01Z")

</div>

I would like to do interactive LaTeXString text plots. However, updating a LaTeXString Node after the text plot has been created, doesn’t affect the plotted text. Here is a small example: using GLMakie fig = Figure()…

---

## [Powermodels Solver options](https://discourse.julialang.org/t/powermodels-solver-options/68003)

<div class="topic-metadata">

**Author:** [@aaldik](https://discourse.julialang.org/u/aaldik)\
**Replies:** 7\
**Last updated:** [September 10, 2021, 9:54pm UTC](https://discourse.julialang.org/t/powermodels-solver-options/68003 "2021-09-10T21:54:28Z")

</div>

Hello everyone i have a question regarding how to change solver options while using Powermodels.jl. I would appreciate your help in this regard.

---

## [Obtaining a Julia \`Image\` from Luxor.jl](https://discourse.julialang.org/t/obtaining-a-julia-image-from-luxor-jl/67992)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 6:49pm UTC](https://discourse.julialang.org/t/obtaining-a-julia-image-from-luxor-jl/67992 "2021-09-10T18:49:31Z")

</div>

At the moment I draw an Image with Luxor and load it back into an Image with using Luxor, Images, FileIO d = Luxor.Drawing(width, height, "temp.png") … Luxor.finish() load("temp.png") Is there a way to get the image ba…

---

## [Confused about build\_function](https://discourse.julialang.org/t/confused-about-build-function/67946)

<div class="topic-metadata">

**Author:** [@gzheng](https://discourse.julialang.org/u/gzheng)\
**Replies:** 6\
**Last updated:** [September 10, 2021, 5:55pm UTC](https://discourse.julialang.org/t/confused-about-build-function/67946 "2021-09-10T17:55:01Z")

</div>

I wanted to do a very basic application of build\_function to test out modelingtoolkit.jl, but ran into issues. using ModelingToolkit @parameters a b @variables x y = x^2 z = x + a f\_y = build\_function(y, x) # This wo…

---

## [Fitting a observed value to a Binomial Distribution Turing](https://discourse.julialang.org/t/fitting-a-observed-value-to-a-binomial-distribution-turing/66619)

<div class="topic-metadata">

**Author:** [@jonathan\_skai](https://discourse.julialang.org/u/jonathan_skai)\
**Replies:** 3\
**Last updated:** [September 10, 2021, 4:04pm UTC](https://discourse.julialang.org/t/fitting-a-observed-value-to-a-binomial-distribution-turing/66619 "2021-09-10T16:04:57Z")

</div>

I am new to Turing and trying to learn it by trying to replicate the Chapters from the book :- https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers . Here is my problem (from Ch…

---

## [Gtk.jl clear canvas on key event](https://discourse.julialang.org/t/gtk-jl-clear-canvas-on-key-event/67757)

<div class="topic-metadata">

**Author:** [@htmj](https://discourse.julialang.org/u/htmj)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 2:18pm UTC](https://discourse.julialang.org/t/gtk-jl-clear-canvas-on-key-event/67757 "2021-09-10T14:18:48Z")

</div>

Hi! I’m trying to make a simple drawing app, and i want to clear the canvas when space is pressed. I understood from this discussion Resetting the canvas within Cairo.jl and Gtk.jl for an image selection viewing gui that…

---

## [Save Random Forest Model for Use in Android Application](https://discourse.julialang.org/t/save-random-forest-model-for-use-in-android-application/32400)

<div class="topic-metadata">

**Author:** [@casstrong](https://discourse.julialang.org/u/casstrong)\
**Replies:** 0\
**Last updated:** [December 17, 2019, 7:31pm UTC](https://discourse.julialang.org/t/save-random-forest-model-for-use-in-android-application/32400 "2019-12-17T19:31:19Z")

</div>

I would like to train a random forest classifier (using DecisionTree.jl) and then export it for use in an Android application that I’m developing. I’ve seen ways to save the model as a .jld or a .jld2 file; however, I ha…

---

## [Makie | interactive update of colorrange in image! / heatmap!](https://discourse.julialang.org/t/makie-interactive-update-of-colorrange-in-image-heatmap/67887)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 1:57am UTC](https://discourse.julialang.org/t/makie-interactive-update-of-colorrange-in-image-heatmap/67887 "2021-09-10T01:57:06Z")

</div>

Hello, I am attempting to do an interactive update of colorrange in image! of the form image!( . . . colorrange = (window\_level\_min, window\_level\_max), . . . ) using input from two Sliders. window\_level\_min a…

---

## [Is there a package that abstracts the storage location so that it's cloud and local path agnostic?](https://discourse.julialang.org/t/is-there-a-package-that-abstracts-the-storage-location-so-that-its-cloud-and-local-path-agnostic/67923)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 8\
**Last updated:** [September 9, 2021, 11:45pm UTC](https://discourse.julialang.org/t/is-there-a-package-that-abstracts-the-storage-location-so-that-its-cloud-and-local-path-agnostic/67923 "2021-09-09T23:45:15Z")

</div>

Say I want to save a file somewhere on the hard drive, it’s actually not that different to saving it to a S3 bucket. E.g. save(location, object) should work regardless if the location is S3 or local path. Wonder if such…

---

## [Cuprint makes CUDA kernell Work well](https://discourse.julialang.org/t/cuprint-makes-cuda-kernell-work-well/67821)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [September 9, 2021, 5:31pm UTC](https://discourse.julialang.org/t/cuprint-makes-cuda-kernell-work-well/67821 "2021-09-09T17:31:09Z")

</div>

I am developing kernel that is comparing two boolean 1 dimensional arrays looking for true positives, false positives and false negatives (details in function incr\_shmem below). And I have one bizarre error when I inc…

---

## [Flux is lagging far beyond tensorflow with a pretty basic use case](https://discourse.julialang.org/t/flux-is-lagging-far-beyond-tensorflow-with-a-pretty-basic-use-case/67942)

<div class="topic-metadata">

**Author:** [@egolep](https://discourse.julialang.org/u/egolep)\
**Replies:** 5\
**Last updated:** [September 9, 2021, 4:43pm UTC](https://discourse.julialang.org/t/flux-is-lagging-far-beyond-tensorflow-with-a-pretty-basic-use-case/67942 "2021-09-09T16:43:36Z")

</div>

I was trying to move from a Python ML/DL stack to Julia (so from something like sklearn+pytorch/tensorflow to MLJ+Flux). So I decided to rewrite the Kaggle courses in Julia, switching from the Python libraries to the J…

---

## [Makie.jl: travelling through an attractor (or Axis3)](https://discourse.julialang.org/t/makie-jl-travelling-through-an-attractor-or-axis3/67936)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 4:18pm UTC](https://discourse.julialang.org/t/makie-jl-travelling-through-an-attractor-or-axis3/67936 "2021-09-09T16:18:34Z")

</div>

Hi, I have a 3d line plot that looks as follows: I know the ax.azimuth and ax.elevation I need to set to end up in this orientation. What I want to do now is somehow (no idea how!) animate the camera going through …

---

## [PG fails to sample properly with acclogp!](https://discourse.julialang.org/t/pg-fails-to-sample-properly-with-acclogp/67924)

<div class="topic-metadata">

**Author:** [@sami1](https://discourse.julialang.org/u/sami1)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 3:33pm UTC](https://discourse.julialang.org/t/pg-fails-to-sample-properly-with-acclogp/67924 "2021-09-09T15:33:49Z")

</div>

Hello, I’m currently trying to sample from a posterior with a mixture of differentiable and discrete parameters, some of them I can’t marginalize. I tried to marginalize the one I could using acclogp!, and sample the re…

---

## [ODE model in Turing](https://discourse.julialang.org/t/ode-model-in-turing/67929)

<div class="topic-metadata">

**Author:** [@yunus](https://discourse.julialang.org/u/yunus)\
**Replies:** 3\
**Last updated:** [September 9, 2021, 2:27pm UTC](https://discourse.julialang.org/t/ode-model-in-turing/67929 "2021-09-09T14:27:58Z")

</div>

Hi everyone, I’m new to Julia and would like to use the Turing package for Bayesian inference on high dimensional ordinary differential equations. With this in mind, efficiency is key. To get started I implemented a li…

---

## [How to plot contour in an arbitrary shape of area?](https://discourse.julialang.org/t/how-to-plot-contour-in-an-arbitrary-shape-of-area/67902)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 1:50pm UTC](https://discourse.julialang.org/t/how-to-plot-contour-in-an-arbitrary-shape-of-area/67902 "2021-09-09T13:50:02Z")

</div>

How can I use contour to plot a contour in an arbitrary shape, say, a parallelogram? A simple example is: I tried contour!(xgrid, ygrid, zs) but it seems contour can only take vector-like objects, such as range rathe…

---

## [Plots.jl annotations location in a type @recipe](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 1\
**Last updated:** [September 9, 2021, 8:27am UTC](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941 "2021-09-09T08:27:20Z")

</div>

hi all, (was posted on Plots.jl gitter) how can I specify the annotations position when i want to label points inside a type recipe? i found that adding this to my @series block works: series\_annotations := \["$i" for i…

---

## [Different interpolations in Ferrite.jl](https://discourse.julialang.org/t/different-interpolations-in-ferrite-jl/67913)

<div class="topic-metadata">

**Author:** [@bcsj](https://discourse.julialang.org/u/bcsj)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 8:25am UTC](https://discourse.julialang.org/t/different-interpolations-in-ferrite-jl/67913 "2021-09-09T08:25:21Z")

</div>

In Ferrite.jl when initializing CellValues like CellScalarValues or CellVectorValues one supplies a quadrature rule along with a function interpolation. According to the documentation there is an optional argument geom\_i…

---

## [Reset color cycle with RecipesBase](https://discourse.julialang.org/t/reset-color-cycle-with-recipesbase/64706)

<div class="topic-metadata">

**Author:** [@giancarloantonucci](https://discourse.julialang.org/u/giancarloantonucci)\
**Replies:** 0\
**Last updated:** [July 15, 2021, 6:01pm UTC](https://discourse.julialang.org/t/reset-color-cycle-with-recipesbase/64706 "2021-07-15T18:01:57Z")

</div>

Say I define a struct Example like: struct Example fields end example = Example(\[rand(3), rand(3), rand(3)\]) Using RecipesBase, I can define a plot recipe that allows me to plot each component of such a struct: us…

---

## [How to update coordinates and colors in a type recipe?](https://discourse.julialang.org/t/how-to-update-coordinates-and-colors-in-a-type-recipe/58213)

<div class="topic-metadata">

**Author:** [@SebastianM-C](https://discourse.julialang.org/u/SebastianM-C)\
**Replies:** 0\
**Last updated:** [March 30, 2021, 9:51am UTC](https://discourse.julialang.org/t/how-to-update-coordinates-and-colors-in-a-type-recipe/58213 "2021-03-30T09:51:15Z")

</div>

I want to create a type recipe which will produce a scatter plot with a variable number of points. I tried to use WGLMakie with the code below using WGLMakie using JSServe using Markdown using JSServe.DOM JSServe.brows…

---

## [Makie change axis appearance in plot recipe](https://discourse.julialang.org/t/makie-change-axis-appearance-in-plot-recipe/30897)

<div class="topic-metadata">

**Author:** [@daniel](https://discourse.julialang.org/u/daniel)\
**Replies:** 0\
**Last updated:** [November 9, 2019, 5:49pm UTC](https://discourse.julialang.org/t/makie-change-axis-appearance-in-plot-recipe/30897 "2019-11-09T17:49:09Z")

</div>

Is there a way to change the axis appearance in a plot recipe? Suppose I have @recipe(MyPlot, x, y) do scene Theme( plot\_color = :red ) end function AbstractPlotting.plot!(plot::MyPlot) # normal pl…

---

## [Same random sequence on GPU and CPU?](https://discourse.julialang.org/t/same-random-sequence-on-gpu-and-cpu/67881)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 8\
**Last updated:** [September 8, 2021, 5:47pm UTC](https://discourse.julialang.org/t/same-random-sequence-on-gpu-and-cpu/67881 "2021-09-08T17:47:35Z")

</div>

is there a way to generate the same random sequence of numbers on a GPU as on the CPU? i was hoping i could just use rng = Random.default\_rng() as the generator for both GPU and CPU vectors, but while it doesn’t emit an…

---

## [String labels in the x axis](https://discourse.julialang.org/t/string-labels-in-the-x-axis/67880)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 3:52pm UTC](https://discourse.julialang.org/t/string-labels-in-the-x-axis/67880 "2021-09-08T15:52:03Z")

</div>

Hi, I’m trying to make a plot with a numerical series on the y axis and a string series on the x axis. The x series is a vector like this, imported which is extracted from a data frame: 88-element Vector{Any}: "1997 Q…

---

## [UndefVarError while importing CUDA](https://discourse.julialang.org/t/undefvarerror-while-importing-cuda/67872)

<div class="topic-metadata">

**Author:** [@Hamza\_Coban](https://discourse.julialang.org/u/Hamza_Coban)\
**Replies:** 3\
**Last updated:** [September 8, 2021, 3:15pm UTC](https://discourse.julialang.org/t/undefvarerror-while-importing-cuda/67872 "2021-09-08T15:15:11Z")

</div>

Hi all, I have issues on importing CUDA package. Only active packages are Knet and CUDA. The error as follows when I run “import CUDA” : Info: Precompiling CUDA \[052768ef-5323-5732-b1bb-66c8b64840ba\] └ @ Base loading.…

---

## [\[ANN\] CSV.jl 0.9 Release](https://discourse.julialang.org/t/ann-csv-jl-0-9-release/67844)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 4\
**Last updated:** [September 8, 2021, 2:30pm UTC](https://discourse.julialang.org/t/ann-csv-jl-0-9-release/67844 "2021-09-08T14:30:20Z")

</div>

Hello all, We’re pleased to present the 0.9 release of CSV.jl. Highlights include: Big internals refactoring to simplify code, make maintenance/future feature work easier, and make current features a little more robu…

---

## [State of automatic differentiation in Julia](https://discourse.julialang.org/t/state-of-automatic-differentiation-in-julia/43083)

<div class="topic-metadata">

**Author:** [@Samuel\_Ainsworth](https://discourse.julialang.org/u/Samuel_Ainsworth)\
**Replies:** 56\
**Last updated:** [September 8, 2021, 2:16pm UTC](https://discourse.julialang.org/t/state-of-automatic-differentiation-in-julia/43083 "2021-09-08T14:16:12Z")

</div>

There seems to be a plethora of AD frameworks in Julia. I’m curious what the state of the ecosystem looks like currently. I’m aware of the following packages: FowardDiff ForwardDiff2 Nabla Tracker Yota Zygote ReverseD…

---

## [Replicating ologit results from Econometrics.jl](https://discourse.julialang.org/t/replicating-ologit-results-from-econometrics-jl/67819)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 6\
**Last updated:** [September 8, 2021, 9:51am UTC](https://discourse.julialang.org/t/replicating-ologit-results-from-econometrics-jl/67819 "2021-09-08T09:51:42Z")

</div>

I’m having a hard time replicating the results of an ordered logit regression in Econometrics.jl. The code for the estimation is done here. The objective function is here. Here is my implementation (you can download the…

---

## [Adding a row to SQLite.jl database](https://discourse.julialang.org/t/adding-a-row-to-sqlite-jl-database/44139)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 6:03pm UTC](https://discourse.julialang.org/t/adding-a-row-to-sqlite-jl-database/44139 "2021-08-24T18:03:00Z")

</div>

How do you add a row to a SQLite.jl database? julia\> using SQLite julia\> db = SQLite.DB("temp.sqlite") SQLite.DB("temp.sqlite") julia\> SQLite.createtable!(db, "Primes", Tables.Schema(("index", "prime"), (Int, Int))) No…

---

## [Adaptive methods for image contrast stretching?](https://discourse.julialang.org/t/adaptive-methods-for-image-contrast-stretching/67774)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 7:51am UTC](https://discourse.julialang.org/t/adaptive-methods-for-image-contrast-stretching/67774 "2021-09-08T07:51:50Z")

</div>

Hi, I have an image with small repeating structures, which need to be stretched in the same range(0-1). My intuition is to partition the image to many small tiles, and apply contrast linear stretching for each tile,…

[Previous page](https://discourse.julialang.org/c/domain/10.md?page=337)

[Next page](https://discourse.julialang.org/c/domain/10.md?page=339)
