# Specific Domains

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

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

**Page:** 86

---

## [Turing: selective truncated distribution error](https://discourse.julialang.org/t/turing-selective-truncated-distribution-error/118598)

<div class="topic-metadata">

**Author:** [@Sam\_P](https://discourse.julialang.org/u/Sam_P)\
**Replies:** 1\
**Last updated:** [September 12, 2024, 1:19am UTC](https://discourse.julialang.org/t/turing-selective-truncated-distribution-error/118598 "2024-09-12T01:19:11Z")

</div>

Hi all, I’ve been trying to fit a model to truncated discrete data using Turing, with the aim of recovering the non-truncated distribution’s parameter, and use the fitted model to predict new values based on new truncat…

---

## [Function for resuming mcmc chain](https://discourse.julialang.org/t/function-for-resuming-mcmc-chain/102308)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 13\
**Last updated:** [September 12, 2024, 1:01am UTC](https://discourse.julialang.org/t/function-for-resuming-mcmc-chain/102308 "2024-09-12T01:01:11Z")

</div>

I want to write a function so I will not have to wait for my long inference and get an end result but I will be able to get intermediate results. let’s say if I want to do inference for 100000 iteration. I can get resu…

---

## [Importance Sampling in Turing](https://discourse.julialang.org/t/importance-sampling-in-turing/118179)

<div class="topic-metadata">

**Author:** [@ArnoStrouwen](https://discourse.julialang.org/u/ArnoStrouwen)\
**Replies:** 1\
**Last updated:** [September 12, 2024, 12:57am UTC](https://discourse.julialang.org/t/importance-sampling-in-turing/118179 "2024-09-12T00:57:49Z")

</div>

The summary from importance sampling is very different from NUTS, and just seems to summarize the prior distribution: using Turing @model function gdemo(x, y) s² ~ InverseGamma(2, 3) m ~ Normal(0, sqrt(s²)) …

---

## [Compilers, purity, and variance computation](https://discourse.julialang.org/t/compilers-purity-and-variance-computation/119254)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 5\
**Last updated:** [September 10, 2024, 6:35pm UTC](https://discourse.julialang.org/t/compilers-purity-and-variance-computation/119254 "2024-09-10T18:35:13Z")

</div>

MOST likely you call sum, then std, i.e. separate loops and scan twice, BUT technically the functional approach doesn’t rule out optimal performance: scanning just once… In theory the compiler (of functional languages a…

---

## [Hierarchical proposal in AdvancedMH.jl](https://discourse.julialang.org/t/hierarchical-proposal-in-advancedmh-jl/117204)

<div class="topic-metadata">

**Author:** [@janglaubitz](https://discourse.julialang.org/u/janglaubitz)\
**Replies:** 1\
**Last updated:** [September 12, 2024, 12:44am UTC](https://discourse.julialang.org/t/hierarchical-proposal-in-advancedmh-jl/117204 "2024-09-12T00:44:51Z")

</div>

I am trying to use AdvancedMH.jl within Turing.jl to perform static MH sampling for a hierarchical model: @model function model\_toyProblem\_original( y, σ², β, ϑ ) θ ~ Gamma( β, ϑ ) # hyper-prior model x ~ Norma…

---

## [Type Stability of DifferentialEquations.jl](https://discourse.julialang.org/t/type-stability-of-differentialequations-jl/119293)

<div class="topic-metadata">

**Author:** [@densmojd](https://discourse.julialang.org/u/densmojd)\
**Replies:** 0\
**Last updated:** [September 11, 2024, 6:33pm UTC](https://discourse.julialang.org/t/type-stability-of-differentialequations-jl/119293 "2024-09-11T18:33:28Z")

</div>

I’m learning how to use DifferentialEquations.jl, specifically the OrdinaryDiffEq.jl package, and making sure I do everything “type stable”. I’m seeing some issues when I use @report\_opt from JET.jl. Here’s a MWE: usi…

---

## [Efficient Vector^T \* Jacobian matrix?](https://discourse.julialang.org/t/efficient-vector-t-jacobian-matrix/21329)

<div class="topic-metadata">

**Author:** [@Christian\_Dengler](https://discourse.julialang.org/u/Christian_Dengler)\
**Replies:** 7\
**Last updated:** [September 11, 2024, 5:41pm UTC](https://discourse.julialang.org/t/efficient-vector-t-jacobian-matrix/21329 "2024-09-11T17:41:37Z")

</div>

I’m trying to find a way to efficiently compute the product of a transposed vector with a Jacobian matrix. So given a vector function f and two large vectors v and x of same length, I want to compute v^T \* jacobian(f)(x)…

---

## [Save the optimization results while the optimization is running (Optim.jl)](https://discourse.julialang.org/t/save-the-optimization-results-while-the-optimization-is-running-optim-jl/119116)

<div class="topic-metadata">

**Author:** [@mesonepigreco](https://discourse.julialang.org/u/mesonepigreco)\
**Replies:** 7\
**Last updated:** [September 11, 2024, 4:25pm UTC](https://discourse.julialang.org/t/save-the-optimization-results-while-the-optimization-is-running-optim-jl/119116 "2024-09-11T16:25:51Z")

</div>

Hi, I am running a minimization using Optim. Since it is very slow, I would like to save the results while running so that if I need to switch off the computer and brutally interrupt the minimization, I still have someth…

---

## [Convert scatter to surface](https://discourse.julialang.org/t/convert-scatter-to-surface/119276)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 6\
**Last updated:** [September 11, 2024, 1:13pm UTC](https://discourse.julialang.org/t/convert-scatter-to-surface/119276 "2024-09-11T13:13:49Z")

</div>

Hello there :smiley: I have data that can be plotted as scatter (GLMakie). I would like to convert the scatter into a surface. I tried to interpolate the data as following but it does not work (probably because of the w…

---

## [Solving Geoscience questions using Julia:](https://discourse.julialang.org/t/solving-geoscience-questions-using-julia/119262)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 2\
**Last updated:** [September 11, 2024, 9:08am UTC](https://discourse.julialang.org/t/solving-geoscience-questions-using-julia/119262 "2024-09-11T09:08:33Z")

</div>

Okay, so, I’m trying to become proficient at using Julia for various applications and not just cleaning and crunching datasets. One of my graduate classes assigned a few problems that we can do by hand, but we are also …

---

## [ReadStatTables, type conversion](https://discourse.julialang.org/t/readstattables-type-conversion/119270)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 0\
**Last updated:** [September 11, 2024, 8:34am UTC](https://discourse.julialang.org/t/readstattables-type-conversion/119270 "2024-09-11T08:34:12Z")

</div>

My .dta (STATA) file has some columns as Float32, others as Int8, etc. Especially the Int8 casuses lots of problems in the code, so they must be converted to Int64. Is there a simple way of telling readstat() to do that?…

---

## [Rearrange Data depending on coordinates](https://discourse.julialang.org/t/rearrange-data-depending-on-coordinates/119267)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 0\
**Last updated:** [September 11, 2024, 8:02am UTC](https://discourse.julialang.org/t/rearrange-data-depending-on-coordinates/119267 "2024-09-11T08:02:37Z")

</div>

Hello =) I have some data - typeof(palier\_2) Vector{Float64} (alias for Array{Float64, 1}) - that are associated to x, y and z coordinates : typeof(coord\_x) - Vector{Float64} (alias for Array{Float64, 1}) typeof(coord…

---

## ["Compiling" HIR produced by \`ZXCalculus.jl\`](https://discourse.julialang.org/t/compiling-hir-produced-by-zxcalculus-jl/119221)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 5\
**Last updated:** [September 10, 2024, 5:12pm UTC](https://discourse.julialang.org/t/compiling-hir-produced-by-zxcalculus-jl/119221 "2024-09-10T17:12:13Z")

</div>

I would like to explore the affects of ZX calculus on the synthesis of certain quantum circuits. Thankfully, I saw that Yao has a native Julia implementation in ZXCalculus.jl! However, it seems to me its documentation mi…

---

## [Polar Histogram](https://discourse.julialang.org/t/polar-histogram/103113)

<div class="topic-metadata">

**Author:** [@VincentPoupart](https://discourse.julialang.org/u/VincentPoupart)\
**Replies:** 7\
**Last updated:** [September 10, 2024, 5:08pm UTC](https://discourse.julialang.org/t/polar-histogram/103113 "2024-09-10T17:08:25Z")

</div>

Hi! I wrote a little function to plot polar histograms using PolarAxis. I wonder if it’s a good idea to add something like this to makie? using StatsBase using Distributions using CairoMakie #set of angles in radian an…

---

## [LaTeX-syntax in docstrings with \`DocStringExtensions.jl\`](https://discourse.julialang.org/t/latex-syntax-in-docstrings-with-docstringextensions-jl/119251)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 6\
**Last updated:** [September 10, 2024, 3:49pm UTC](https://discourse.julialang.org/t/latex-syntax-in-docstrings-with-docstringextensions-jl/119251 "2024-09-10T15:49:58Z")

</div>

I am working on a package that will be used by a small team, so I am trying to use Documenter.jl in conjunction with DocStringExtensions.jl to generate the documentation while writing an decorating functions – as one sho…

---

## [CALL FOR NOMINATIONS: 20th Annual "COIN-OR Cup"](https://discourse.julialang.org/t/call-for-nominations-20th-annual-coin-or-cup/119250)

<div class="topic-metadata">

**Author:** [@sshin23](https://discourse.julialang.org/u/sshin23)\
**Replies:** 0\
**Last updated:** [September 10, 2024, 1:09pm UTC](https://discourse.julialang.org/t/call-for-nominations-20th-annual-coin-or-cup/119250 "2024-09-10T13:09:37Z")

</div>

Hello Julia Commiunity, Nominations for the 20th Annual COIN-OR Cup Competition are now open! More details about the nomination can be found at the link below: The COIN-OR Cup recognizes and celebrates the best contri…

---

## [From a DataFrame, how do I create multiple new columns that each take multiple columns as input in a set name pattern?](https://discourse.julialang.org/t/from-a-dataframe-how-do-i-create-multiple-new-columns-that-each-take-multiple-columns-as-input-in-a-set-name-pattern/119245)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 3\
**Last updated:** [September 10, 2024, 12:37pm UTC](https://discourse.julialang.org/t/from-a-dataframe-how-do-i-create-multiple-new-columns-that-each-take-multiple-columns-as-input-in-a-set-name-pattern/119245 "2024-09-10T12:37:32Z")

</div>

There’s a similar question about R on here. However, I can’t find the solution in Julia. Imagine I have a DataFrame using DataFrames df = DataFrame( group = rand(1:3, 100), a1 = 1:100, a2=1:100, a3=1:100, b1 …

---

## [Makie streamplot uniform log gridsize](https://discourse.julialang.org/t/makie-streamplot-uniform-log-gridsize/119079)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 2\
**Last updated:** [September 9, 2024, 2:12pm UTC](https://discourse.julialang.org/t/makie-streamplot-uniform-log-gridsize/119079 "2024-09-09T14:12:25Z")

</div>

Hello, I am trying to create a streamplot in Makie with a log scale axis. I am trying to control the number of lines in the plot using the gridsize argument. However, because of my logarithmic scaling, I am having some…

---

## [Checkpointing.jl does not work in the latest version of Enzyme.jl](https://discourse.julialang.org/t/checkpointing-jl-does-not-work-in-the-latest-version-of-enzyme-jl/118660)

<div class="topic-metadata">

**Author:** [@ToPo](https://discourse.julialang.org/u/ToPo)\
**Replies:** 2\
**Last updated:** [September 9, 2024, 6:59am UTC](https://discourse.julialang.org/t/checkpointing-jl-does-not-work-in-the-latest-version-of-enzyme-jl/118660 "2024-09-09T06:59:46Z")

</div>

Recently, I have been using the checkpointing method to reduce the memory required for automatic differentiation. Therefore, we use Enzyme.jl and Checkpointing.jl. However, when I use the latest version of Enzyme.jl, v…

---

## ["Raster" syntax in GeoStats.jl](https://discourse.julialang.org/t/raster-syntax-in-geostats-jl/119214)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 0\
**Last updated:** [September 9, 2024, 11:07am UTC](https://discourse.julialang.org/t/raster-syntax-in-geostats-jl/119214 "2024-09-09T11:07:09Z")

</div>

Given that most people in the geo community are not aware of the “raster” syntax in GeoStats.jl, I collect a few examples here to facilitate the transition. This post may become part of the official project documentation…

---

## [Any toy version of the DICE model for climate change available in Julia?](https://discourse.julialang.org/t/any-toy-version-of-the-dice-model-for-climate-change-available-in-julia/119134)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [September 9, 2024, 3:25am UTC](https://discourse.julialang.org/t/any-toy-version-of-the-dice-model-for-climate-change-available-in-julia/119134 "2024-09-09T03:25:55Z")

</div>

Does any “toy” (oversemplified) versions of the dice model model for assessing climate change optimal societal actions is available in Julia? Perhaps based on Jump/InfiniteOpt?

---

## [Symbolic Integral Using SymbolicNumericIntegration Error Message Reported](https://discourse.julialang.org/t/symbolic-integral-using-symbolicnumericintegration-error-message-reported/118117)

<div class="topic-metadata">

**Author:** [@gonzalo](https://discourse.julialang.org/u/gonzalo)\
**Replies:** 4\
**Last updated:** [September 9, 2024, 12:08am UTC](https://discourse.julialang.org/t/symbolic-integral-using-symbolicnumericintegration-error-message-reported/118117 "2024-09-09T00:08:11Z")

</div>

I’m trying to do the subsequent symbolic integral following the tutorial of SymbolicNumericIntegration at https://docs.sciml.ai/SymbolicNumericIntegration/stable/ using Symbolics using SymbolicNumericIntegration @var…

---

## [Hierarchical/compositional construction of large optimization models](https://discourse.julialang.org/t/hierarchical-compositional-construction-of-large-optimization-models/100303)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 9\
**Last updated:** [September 8, 2024, 10:48pm UTC](https://discourse.julialang.org/t/hierarchical-compositional-construction-of-large-optimization-models/100303 "2024-09-08T22:48:37Z")

</div>

Hi everyone. I have a broad question, rather than a question about any specific package or code block, so please let me know if its inappropriate and I’ll move/close it. I’m interested if the Julia/JuMP community has pu…

---

## [Any function like \`push!\` for \`CuArray\`](https://discourse.julialang.org/t/any-function-like-push-for-cuarray/119181)

<div class="topic-metadata">

**Author:** [@huiyuxie](https://discourse.julialang.org/u/huiyuxie)\
**Replies:** 2\
**Last updated:** [September 8, 2024, 9:54pm UTC](https://discourse.julialang.org/t/any-function-like-push-for-cuarray/119181 "2024-09-08T21:54:51Z")

</div>

I was wondering if there is any function like push! that works for CuArray? Thanks!

---

## [How to fit a function to measurements with error?](https://discourse.julialang.org/t/how-to-fit-a-function-to-measurements-with-error/65369)

<div class="topic-metadata">

**Author:** [@DaWa](https://discourse.julialang.org/u/DaWa)\
**Replies:** 12\
**Last updated:** [September 8, 2024, 8:28pm UTC](https://discourse.julialang.org/t/how-to-fit-a-function-to-measurements-with-error/65369 "2024-09-08T20:28:27Z")

</div>

Hi all, I am currently using Measurements.jl for error propagation and LsqFit.jl for fitting functions to data. Is there a simple way to fit a function to data with errors? It would be no problem to use an other package…

---

## [AMDGPUBackend is missing](https://discourse.julialang.org/t/amdgpubackend-is-missing/119096)

<div class="topic-metadata">

**Author:** [@Hector\_Yaker](https://discourse.julialang.org/u/Hector_Yaker)\
**Replies:** 5\
**Last updated:** [September 8, 2024, 4:38pm UTC](https://discourse.julialang.org/t/amdgpubackend-is-missing/119096 "2024-09-08T16:38:19Z")

</div>

I don’t really know what’s happening, I have reinstalled the AMDGPU package many times and it’s really missing. I’ve got the latest RoCM and Julia versions and nothing works. Could you help me import it? I am in a Jupyt…

---

## [Slice the type CuSparseMatrixCSC matrix](https://discourse.julialang.org/t/slice-the-type-cusparsematrixcsc-matrix/119189)

<div class="topic-metadata">

**Author:** [@automaticvehiclerook](https://discourse.julialang.org/u/automaticvehiclerook)\
**Replies:** 2\
**Last updated:** [September 8, 2024, 1:36pm UTC](https://discourse.julialang.org/t/slice-the-type-cusparsematrixcsc-matrix/119189 "2024-09-08T13:36:15Z")

</div>

I have a doubt regarding slicing the sparse matrix on GPU.I don’t know why does the result matrix start assigning values from the second row.This is an unexpected result for me.How can i fix the error? using CUDA using …

---

## [Cannot install gurobi](https://discourse.julialang.org/t/cannot-install-gurobi/119186)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 2\
**Last updated:** [September 8, 2024, 7:07am UTC](https://discourse.julialang.org/t/cannot-install-gurobi/119186 "2024-09-08T07:07:40Z")

</div>

After obtaining my gurobi license, I tried to download gurobi for Julia. However, this happened. It said that the source was too slow. - https://anaconda.org/Gurobi/gurobi/11.0.2/download/win-64/gurobi-11.0.2-py311\_0.t…

---

## [\[ANN\] BlindingIndex.jl](https://discourse.julialang.org/t/ann-blindingindex-jl/119161)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 0\
**Last updated:** [September 7, 2024, 9:01am UTC](https://discourse.julialang.org/t/ann-blindingindex-jl/119161 "2024-09-07T09:01:48Z")

</div>

Compute James’ and Bang’s Blinding Indices, used in evaluating blinding of randomized, blinded clinical trials (RCTs). The code is based on R package BI by Marc Schwartz and Nate Mercaldo. repository: https://codeberg.…

---

## [EM algorithm for HMM-GLM models in Julia?](https://discourse.julialang.org/t/em-algorithm-for-hmm-glm-models-in-julia/119136)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 5\
**Last updated:** [September 6, 2024, 7:42pm UTC](https://discourse.julialang.org/t/em-algorithm-for-hmm-glm-models-in-julia/119136 "2024-09-06T19:42:29Z")

</div>

Hi all, Is there anyone here who tried to use Julia for HMM-GLM models using Expectation Maximization? I’m looking for good references to try it out. I looked at HiddenMarkovModels.jl but I’m not sure how to use it to …

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

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