# Specific Domains

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

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

**Page:** 240

---

## [Discrepancy between lme4 and GLM.jl](https://discourse.julialang.org/t/discrepancy-between-lme4-and-glm-jl/85601)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 7\
**Last updated:** [November 1, 2022, 4:18pm UTC](https://discourse.julialang.org/t/discrepancy-between-lme4-and-glm-jl/85601 "2022-11-01T16:18:30Z")

</div>

There I was, happily running thousands of linear models with GLM.jl, but the results didn’t seem quite right. For one thing, all of my p-values were exceptionally low (\>90% of features significant, even after FDR correct…

---

## [PlotlyJS users poll](https://discourse.julialang.org/t/plotlyjs-users-poll/89576)

<div class="topic-metadata">

**Author:** [@halleysfifthinc](https://discourse.julialang.org/u/halleysfifthinc)\
**Replies:** 6\
**Last updated:** [November 1, 2022, 12:43pm UTC](https://discourse.julialang.org/t/plotlyjs-users-poll/89576 "2022-11-01T12:43:34Z")

</div>

I just opened a PR to remove support/dependency on Blink that I expect will be controversial, check it out for more details. There are some good reasons to remove the dependency on Blink, but I recognize that my workflow…

---

## [Recommended packages for graph theory?](https://discourse.julialang.org/t/recommended-packages-for-graph-theory/89594)

<div class="topic-metadata">

**Author:** [@amca01](https://discourse.julialang.org/u/amca01)\
**Replies:** 4\
**Last updated:** [November 1, 2022, 10:03am UTC](https://discourse.julialang.org/t/recommended-packages-for-graph-theory/89594 "2022-11-01T10:03:21Z")

</div>

I’ve just started to explore graph theory in Julia. And there’s a bewildering array of packages. Some are unmaintained, such LightGraphs.jl and the old Graphs.jl. To confuse matters, LightGraphs.jl seems to be been fo…

---

## [LoadError: InitError: could not load library "avcodec-58.dll" (Windows 10)](https://discourse.julialang.org/t/loaderror-initerror-could-not-load-library-avcodec-58-dll-windows-10/48091)

<div class="topic-metadata">

**Author:** [@afishy](https://discourse.julialang.org/u/afishy)\
**Replies:** 14\
**Last updated:** [November 1, 2022, 8:39am UTC](https://discourse.julialang.org/t/loaderror-initerror-could-not-load-library-avcodec-58-dll-windows-10/48091 "2022-11-01T08:39:16Z")

</div>

As of today I haven’t been able to precompile any package that requires FFMPEG.jl, getting this error: ERROR: LoadError: InitError: could not load library "C:\\Users\\aresf\\.julia\\artifacts\\7350a6401f1c0d38cc3518193083bc4…

---

## [How to define an array of variables in JuMP that has different lengths in different dimensions](https://discourse.julialang.org/t/how-to-define-an-array-of-variables-in-jump-that-has-different-lengths-in-different-dimensions/89598)

<div class="topic-metadata">

**Author:** [@Alex\_ricci](https://discourse.julialang.org/u/Alex_ricci)\
**Replies:** 1\
**Last updated:** [November 1, 2022, 6:43am UTC](https://discourse.julialang.org/t/how-to-define-an-array-of-variables-in-jump-that-has-different-lengths-in-different-dimensions/89598 "2022-11-01T06:43:44Z")

</div>

I have a parameter called z\_{t, w} with the size of 2 \\times 2 which is a vector of vectors. For example, z\_{1,1} and z\_{2,1} are z\[1,1\] = \[10 10 30 40 50\] z\[2,1\] = \[20 30 40\] I want to define a variable y based on z…

---

## [Jump quadratic problem](https://discourse.julialang.org/t/jump-quadratic-problem/89475)

<div class="topic-metadata">

**Author:** [@Muhammad\_Nadeem](https://discourse.julialang.org/u/Muhammad_Nadeem)\
**Replies:** 2\
**Last updated:** [November 1, 2022, 3:34am UTC](https://discourse.julialang.org/t/jump-quadratic-problem/89475 "2022-11-01T03:34:25Z")

</div>

Hello all, I am solving a simple quadratric problem of the form x\* = argmin 0.5 x'Qx + x'q # x # s.t. l1 ≤ Ax ≤ u1 my code is as follows: model = Model(HiGHS.Optimi…

---

## [How to include a customized function which takes expressions as input values inside a constraint?](https://discourse.julialang.org/t/how-to-include-a-customized-function-which-takes-expressions-as-input-values-inside-a-constraint/89187)

<div class="topic-metadata">

**Author:** [@Alex\_ricci](https://discourse.julialang.org/u/Alex_ricci)\
**Replies:** 3\
**Last updated:** [November 1, 2022, 12:37am UTC](https://discourse.julialang.org/t/how-to-include-a-customized-function-which-takes-expressions-as-input-values-inside-a-constraint/89187 "2022-11-01T00:37:38Z")

</div>

consider this program H=4 J=3 m = Model(GLPK.Optimizer) @variable(m, x\[ 1:H , 1:J \], Bin) I am trying to model this constraint: Where 1.() is an indicator function. After a few hours of playing this is the best I c…

---

## [Precompiling Flux](https://discourse.julialang.org/t/precompiling-flux/89577)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 7:43pm UTC](https://discourse.julialang.org/t/precompiling-flux/89577 "2022-10-31T19:43:54Z")

</div>

I am working on the Mac with Julia 1.8.2 in Visual Code. I installed Flux, but when adding it via the package manager using \\ followed by add, I get the following error: ERROR: LoadError: UndefVarError: IndicesInfo not …

---

## [Getting output after solver timeout reached](https://discourse.julialang.org/t/getting-output-after-solver-timeout-reached/81324)

<div class="topic-metadata">

**Author:** [@Viktor\_Pavlovic](https://discourse.julialang.org/u/Viktor_Pavlovic)\
**Replies:** 9\
**Last updated:** [October 31, 2022, 8:03pm UTC](https://discourse.julialang.org/t/getting-output-after-solver-timeout-reached/81324 "2022-10-31T20:03:07Z")

</div>

Hello all, I have recently started using Couenne to solve MINLPs and have now encountered problems where I don’t obtain a solution in a reasonable amount of time. I am wondering if I can get set a time limit and obtain …

---

## [Do we need to apply weights if we are using the AUC PR for imbalanced data?](https://discourse.julialang.org/t/do-we-need-to-apply-weights-if-we-are-using-the-auc-pr-for-imbalanced-data/89533)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 0\
**Last updated:** [October 30, 2022, 10:58pm UTC](https://discourse.julialang.org/t/do-we-need-to-apply-weights-if-we-are-using-the-auc-pr-for-imbalanced-data/89533 "2022-10-30T22:58:16Z")

</div>

If we want to apply a classification model to imbalanced data we should Apply weights to the classes or use a cost matrix. Use the metrics more robust to imbalance, for example the AUC PR better than the AUC ROC, and t…

---

## [Decade missing in bode plot](https://discourse.julialang.org/t/decade-missing-in-bode-plot/89564)

<div class="topic-metadata">

**Author:** [@lucasmsoares96](https://discourse.julialang.org/u/lucasmsoares96)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 6:22pm UTC](https://discourse.julialang.org/t/decade-missing-in-bode-plot/89564 "2022-10-31T18:22:35Z")

</div>

When I plot the bode diagram it hides the decade 10¹ begin using ControlSystems using Plots h₁ = tf( \[10\], \[1, 20\] ) bodeplot(h₁) end How to show the missing decade?

---

## [Makie - plot script returned without visualization window](https://discourse.julialang.org/t/makie-plot-script-returned-without-visualization-window/59828)

<div class="topic-metadata">

**Author:** [@jwu](https://discourse.julialang.org/u/jwu)\
**Replies:** 6\
**Last updated:** [October 31, 2022, 6:09pm UTC](https://discourse.julialang.org/t/makie-plot-script-returned-without-visualization-window/59828 "2022-10-31T18:09:18Z")

</div>

I see the documentation that it might be a problem of GLMakie building, but my build seems fine without any errors. I also tried build GLMakie, it looks fine. this is my code for test: using ModernGL #using Makie #usi…

---

## [Gradient on GPU 70X slower than on CPU](https://discourse.julialang.org/t/gradient-on-gpu-70x-slower-than-on-cpu/89407)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 13\
**Last updated:** [October 28, 2022, 9:39pm UTC](https://discourse.julialang.org/t/gradient-on-gpu-70x-slower-than-on-cpu/89407 "2022-10-28T21:39:59Z")

</div>

I just started using Flux.jl. I have a loss function whose gradient is calculated much slower on GPU than on CPU. As a machine learning project typically involves a large dataset, it is difficult to create a MWE, but I…

---

## [\[ANN\] NeuroJ.jl](https://discourse.julialang.org/t/ann-neuroj-jl/82665)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 9\
**Last updated:** [October 31, 2022, 2:00pm UTC](https://discourse.julialang.org/t/ann-neuroj-jl/82665 "2022-10-31T14:00:50Z")

</div>

Hi, This is the first public release, I’m kinda nervous and excited :slight\_smile: NeuroJ.jl is a Julia package for analyzing of EEG data. Future versions will also process MEG and NIRS data and use MRI data for source…

---

## [NUTS Sampler stuck in rejected due to numerical errors](https://discourse.julialang.org/t/nuts-sampler-stuck-in-rejected-due-to-numerical-errors/89571)

<div class="topic-metadata">

**Author:** [@astro-kevin](https://discourse.julialang.org/u/astro-kevin)\
**Replies:** 0\
**Last updated:** [October 31, 2022, 3:35pm UTC](https://discourse.julialang.org/t/nuts-sampler-stuck-in-rejected-due-to-numerical-errors/89571 "2022-10-31T15:35:32Z")

</div>

The Turing sampler seems to be stuck on Warning: The current proposal will be rejected due to numerical error(s). │ isfinite.((θ, r, ℓπ, ℓκ)) = (true, false, false, false) There seems to have been others who have fac…

---

## [Does anyone has experience / can refer to a "general", "data-driven" PARTIAL equilibrium model?](https://discourse.julialang.org/t/does-anyone-has-experience-can-refer-to-a-general-data-driven-partial-equilibrium-model/89567)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [October 31, 2022, 2:45pm UTC](https://discourse.julialang.org/t/does-anyone-has-experience-can-refer-to-a-general-data-driven-partial-equilibrium-model/89567 "2022-10-31T14:45:03Z")

</div>

Hello, I am the maintainer of FFSM (https://ffsm-project.org), a bio-economic model that deals with forest biological dynamics, forest management and the markets of timber products. We are currently exploring the possib…

---

## [An outer-product in Yao?](https://discourse.julialang.org/t/an-outer-product-in-yao/89543)

<div class="topic-metadata">

**Author:** [@BoltzmannEntropy](https://discourse.julialang.org/u/BoltzmannEntropy)\
**Replies:** 5\
**Last updated:** [October 31, 2022, 12:52pm UTC](https://discourse.julialang.org/t/an-outer-product-in-yao/89543 "2022-10-31T12:52:17Z")

</div>

Hello, I am trying to evaluate the following expression: I3 + ψ\*ψ' First, is there a way in Yao to create an arbitrary sized Identity matrix like I3? using Yao, YaoPlots using YaoBlocks: eigenbasis ψ=ArrayReg(bit"11…

---

## [LightOSM: precomputing dijkstra\_states throws an UndefVarError](https://discourse.julialang.org/t/lightosm-precomputing-dijkstra-states-throws-an-undefvarerror/89551)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 10:26am UTC](https://discourse.julialang.org/t/lightosm-precomputing-dijkstra-states-throws-an-undefvarerror/89551 "2022-10-31T10:26:39Z")

</div>

From LightOSM.jl/benchmarks.jl at master · DeloitteOptimalReality/LightOSM.jl · GitHub point = GeoLocation(-37.8142176, 144.9631608) # Melbourne, Australia radius = 5 # km data\_file = joinpath(@\_\_DIR\_\_, "benchmark\_map.o…

---

## [A preview of \`StatisticalGraphics\` a new package for data visualisation in Julia](https://discourse.julialang.org/t/a-preview-of-statisticalgraphics-a-new-package-for-data-visualisation-in-julia/89547)

<div class="topic-metadata">

**Author:** [@sl-solution](https://discourse.julialang.org/u/sl-solution)\
**Replies:** 0\
**Last updated:** [October 31, 2022, 8:46am UTC](https://discourse.julialang.org/t/a-preview-of-statisticalgraphics-a-new-package-for-data-visualisation-in-julia/89547 "2022-10-31T08:46:26Z")

</div>

I am very excited to share a preview of StatisticalGraphics, a package that I have developed for statistical data visualisation in Julia. The idea of the package is to develop a simple to use and yet powerful tool for st…

---

## [Saving multiple MLJ machine to a single file?](https://discourse.julialang.org/t/saving-multiple-mlj-machine-to-a-single-file/89269)

<div class="topic-metadata">

**Author:** [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)\
**Replies:** 5\
**Last updated:** [October 31, 2022, 1:25am UTC](https://discourse.julialang.org/t/saving-multiple-mlj-machine-to-a-single-file/89269 "2022-10-31T01:25:58Z")

</div>

Is it possible to save/load multiple trained MLJ machine to a single file to ease file management? Using JLD2 seems to generate a huge file (40GB using JLD2 compared to 40MB when using MLJ.save).

---

## [Use mapbox to place images with PlotlyJS](https://discourse.julialang.org/t/use-mapbox-to-place-images-with-plotlyjs/86758)

<div class="topic-metadata">

**Author:** [@lgo](https://discourse.julialang.org/u/lgo)\
**Replies:** 6\
**Last updated:** [October 30, 2022, 8:23pm UTC](https://discourse.julialang.org/t/use-mapbox-to-place-images-with-plotlyjs/86758 "2022-10-30T20:23:59Z")

</div>

I want to create a map with PlotlyJS that includes lines and grouped/stacked bar charts. I’ve asked on stackoverflow how to achieve this in general and got a solution that deploys mapboxes. Now I’m trying to convert this…

---

## [JuMP optimization](https://discourse.julialang.org/t/jump-optimization/89528)

<div class="topic-metadata">

**Author:** [@Muhammad\_Nadeem](https://discourse.julialang.org/u/Muhammad_Nadeem)\
**Replies:** 2\
**Last updated:** [October 30, 2022, 7:25pm UTC](https://discourse.julialang.org/t/jump-optimization/89528 "2022-10-30T19:25:36Z")

</div>

Hello all, I am trying to solve an optimization problem in JUMP, however it is giving me some weird error (at least to me :slight\_smile: ), please see my code below using JuMP using HiGHS Q = \[1 0; 0 1.0\] A = zero…

---

## [GBODE solver: is it relevant?](https://discourse.julialang.org/t/gbode-solver-is-it-relevant/89496)

<div class="topic-metadata">

**Author:** [@nrontsis](https://discourse.julialang.org/u/nrontsis)\
**Replies:** 7\
**Last updated:** [October 30, 2022, 7:18pm UTC](https://discourse.julialang.org/t/gbode-solver-is-it-relevant/89496 "2022-10-30T19:18:47Z")

</div>

Going through OpenModelica’s user guide I stumbled upon one of its default integration methods: GBODE. I was surprised to not find a Julia implementation/port of it e.g. available via DifferentialEquations.jl. I wonder…

---

## [Help debugging differential equation](https://discourse.julialang.org/t/help-debugging-differential-equation/89271)

<div class="topic-metadata">

**Author:** [@Ge0rges](https://discourse.julialang.org/u/Ge0rges)\
**Replies:** 6\
**Last updated:** [October 30, 2022, 5:45pm UTC](https://discourse.julialang.org/t/help-debugging-differential-equation/89271 "2022-10-30T17:45:56Z")

</div>

Hello all, I have a set of relatively simple differential equations modeling growth of bacteria as a function of available substrates. Unfortunately, my model fails to be solved in one particular case, and I cannot figu…

---

## [Normalizing DataFrame column by group](https://discourse.julialang.org/t/normalizing-dataframe-column-by-group/89226)

<div class="topic-metadata">

**Author:** [@jbr](https://discourse.julialang.org/u/jbr)\
**Replies:** 5\
**Last updated:** [October 30, 2022, 2:47pm UTC](https://discourse.julialang.org/t/normalizing-dataframe-column-by-group/89226 "2022-10-30T14:47:35Z")

</div>

I’ve been going through some of the DataFrames documentation and I feel I haven’t fully grokked the split-apply-combine strategy. Concretely, what I’d like to do is: group a DataFrame by one column Normalize the data c…

---

## [Using Symbolics and Flux](https://discourse.julialang.org/t/using-symbolics-and-flux/89498)

<div class="topic-metadata">

**Author:** [@Max\_Beez](https://discourse.julialang.org/u/Max_Beez)\
**Replies:** 4\
**Last updated:** [October 29, 2022, 7:02pm UTC](https://discourse.julialang.org/t/using-symbolics-and-flux/89498 "2022-10-29T19:02:42Z")

</div>

Let’s say I have something along the lines of using Symbolics, Flux @variables x,y function f() \[x^2y^3 ; x+y^2\] end grad\_f(x,y) = Flux.gradient(transpose(f())\*f(), x,y) display(grad\_f(x,y)) The following error…

---

## [Can't seem to get Optimization.jl to converge to solution in Monte Carlo simulation but the objective function seems to work okay otherwise](https://discourse.julialang.org/t/cant-seem-to-get-optimization-jl-to-converge-to-solution-in-monte-carlo-simulation-but-the-objective-function-seems-to-work-okay-otherwise/88764)

<div class="topic-metadata">

**Author:** [@sumant28](https://discourse.julialang.org/u/sumant28)\
**Replies:** 9\
**Last updated:** [October 29, 2022, 5:00pm UTC](https://discourse.julialang.org/t/cant-seem-to-get-optimization-jl-to-converge-to-solution-in-monte-carlo-simulation-but-the-objective-function-seems-to-work-okay-otherwise/88764 "2022-10-29T17:00:12Z")

</div>

A basic binary logic works fine using Optimization, OptimizationOptimJL, OptimizationBBO, OptimizationMOI, ForwardDiff, ModelingToolkit, Random function SimulateBinaryLogit(x, Beta) N = size(x, 1) J = size(Beta, 1)…

---

## [How to make a plot with multiple titles and labels in Makie](https://discourse.julialang.org/t/how-to-make-a-plot-with-multiple-titles-and-labels-in-makie/89137)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 12:58pm UTC](https://discourse.julialang.org/t/how-to-make-a-plot-with-multiple-titles-and-labels-in-makie/89137 "2022-10-29T12:58:05Z")

</div>

Question from Slack, posting here to keep the solution searchable in the future: This is a figure from IMF blog. Is it possible to create a plot like this: Have title and a write up in the top and caption at the bottom …

---

## [GLM with multiplicative coefficients](https://discourse.julialang.org/t/glm-with-multiplicative-coefficients/88995)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 9:56am UTC](https://discourse.julialang.org/t/glm-with-multiplicative-coefficients/88995 "2022-10-29T09:56:42Z")

</div>

Let’s say I’ve got this dataset, where I’m interested in Weight Gain as a function of calories consumed at Breakfast, Lunch, Dinner. 4×6 DataFrame Row │ Participant Day B L D WG │ String …

---

## [Problem summing multiple dims in NLobjective](https://discourse.julialang.org/t/problem-summing-multiple-dims-in-nlobjective/89442)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 3\
**Last updated:** [October 29, 2022, 8:30am UTC](https://discourse.julialang.org/t/problem-summing-multiple-dims-in-nlobjective/89442 "2022-10-29T08:30:34Z")

</div>

I’m having trouble using matrices in an NLobjective model = Model() @variable(model, 0 .\<= x\[1:100, 1:100\] .\<= 1) @NLexpression(model,x\_con\[ii=1:100, jj=1:100\], x\[ii,jj\] \* abs(x\[ii,jj\])) This works @NLobjective(model…

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

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