# Specific Domains

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

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

**Page:** 350

---

## [About DataFrame(array\_of\_dict)](https://discourse.julialang.org/t/about-dataframe-array-of-dict/65253)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 5\
**Last updated:** [July 25, 2021, 6:45pm UTC](https://discourse.julialang.org/t/about-dataframe-array-of-dict/65253 "2021-07-25T18:45:30Z")

</div>

using AlphaVantage, DataFrames apikey\_AV = AlphaVantage.global\_key!("5J16OULI0KY026M4"); tickerList = \["AAPL","MSFT"\]; StockHistoryRawJson = AlphaVantage.time\_series\_daily\_adjusted.(Stocks.tickerList, outputsize="compac…

---

## [Sparse Feed Forward NN](https://discourse.julialang.org/t/sparse-feed-forward-nn/33203)

<div class="topic-metadata">

**Author:** [@olszewskip](https://discourse.julialang.org/u/olszewskip)\
**Replies:** 3\
**Last updated:** [July 25, 2021, 1:27pm UTC](https://discourse.julialang.org/t/sparse-feed-forward-nn/33203 "2021-07-25T13:27:10Z")

</div>

Hi! I have a question about (hypothetical) sparse layers in feedforward neural neworks: How would I go about using sparse array in place of W(eights) and b(iases) in the Flux’es Dense layer? What I imagine is that I hav…

---

## [Using Pixel buffer objects to update textures in OpenGl](https://discourse.julialang.org/t/using-pixel-buffer-objects-to-update-textures-in-opengl/65260)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 0\
**Last updated:** [July 25, 2021, 11:25am UTC](https://discourse.julialang.org/t/using-pixel-buffer-objects-to-update-textures-in-opengl/65260 "2021-07-25T11:25:05Z")

</div>

Hello I looked into GL/GLAbstraction.jl package and as far as I see texture updating is done by glTexSubImage2D , yet why Pixel buffer objects are not used? Is there some reason? Frankly I tried to implement the pixel b…

---

## [JuMP is slow in generating block PSD constraints](https://discourse.julialang.org/t/jump-is-slow-in-generating-block-psd-constraints/65186)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 2\
**Last updated:** [July 24, 2021, 2:48pm UTC](https://discourse.julialang.org/t/jump-is-slow-in-generating-block-psd-constraints/65186 "2021-07-24T14:48:41Z")

</div>

Could an expert help me speed up the following code? In particular, Have I used the performance tips (https://jump.dev/JuMP.jl/stable/tutorials/Getting%20started/performance\_tips/) correctly? That is only generate exp…

---

## [Turing.jl: Sometimes this error is thrown: Cannot \`convert\` an object of type Geometric{Float64} to an object of type Dirac{Float64}](https://discourse.julialang.org/t/turing-jl-sometimes-this-error-is-thrown-cannot-convert-an-object-of-type-geometric-float64-to-an-object-of-type-dirac-float64/65202)

<div class="topic-metadata">

**Author:** [@Hakan\_Kjellerstrand](https://discourse.julialang.org/u/Hakan_Kjellerstrand)\
**Replies:** 4\
**Last updated:** [July 24, 2021, 5:00am UTC](https://discourse.julialang.org/t/turing-jl-sometimes-this-error-is-thrown-cannot-convert-an-object-of-type-geometric-float64-to-an-object-of-type-dirac-float64/65202 "2021-07-24T05:00:51Z")

</div>

Sometimes, but not always, this error is thrown for the model below when using the SMC() sampler: ERROR: LoadError: CTaskException: MethodError: Cannot \`convert\` an object of type Geometric{Float64} to an object of type…

---

## [Convergence in Optim questions](https://discourse.julialang.org/t/convergence-in-optim-questions/65139)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 3\
**Last updated:** [July 23, 2021, 7:56pm UTC](https://discourse.julialang.org/t/convergence-in-optim-questions/65139 "2021-07-23T19:56:52Z")

</div>

I have a few questions regarding convergence in Optim: When an optimization finishes and prints the convergence report, at the top it says either “success” or “failure”. Does this refer to whether or not the algorithm …

---

## [Newton solution from PowerModels.jl](https://discourse.julialang.org/t/newton-solution-from-powermodels-jl/64356)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 11\
**Last updated:** [July 23, 2021, 6:08pm UTC](https://discourse.julialang.org/t/newton-solution-from-powermodels-jl/64356 "2021-07-23T18:08:00Z")

</div>

Hello. I’m using PowerModels.jl to run some power flow studies and I’m interested in comparing the results obtained from the JuMP solution to the Newton solution. In most cases, those results are the same; however, when…

---

## [Probability distribution with complex object support (e.g. \`Tuple{Integer, Matrix}\`)](https://discourse.julialang.org/t/probability-distribution-with-complex-object-support-e-g-tuple-integer-matrix/64964)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 3\
**Last updated:** [July 23, 2021, 5:12pm UTC](https://discourse.julialang.org/t/probability-distribution-with-complex-object-support-e-g-tuple-integer-matrix/64964 "2021-07-23T17:12:59Z")

</div>

The Distributions.jl package has great support for continuous and discrete distributions over scalars, vectors, and matrices. Is it meant to support in any way probability distributions in which sampling would return a m…

---

## [Makie surface and NaN values](https://discourse.julialang.org/t/makie-surface-and-nan-values/65165)

<div class="topic-metadata">

**Author:** [@vettert](https://discourse.julialang.org/u/vettert)\
**Replies:** 9\
**Last updated:** [July 23, 2021, 1:29pm UTC](https://discourse.julialang.org/t/makie-surface-and-nan-values/65165 "2021-07-23T13:29:22Z")

</div>

I am running in some unexpected behavior with GLMakie, surface plots and matrices that contain NaN as a value. My minimum working example below produces the following plots of three different 4 x 4 matrices with differe…

---

## [Sudden stop of parallel optimization with JuMP and Juniper](https://discourse.julialang.org/t/sudden-stop-of-parallel-optimization-with-jump-and-juniper/65031)

<div class="topic-metadata">

**Author:** [@jairorua](https://discourse.julialang.org/u/jairorua)\
**Replies:** 8\
**Last updated:** [July 23, 2021, 7:06am UTC](https://discourse.julialang.org/t/sudden-stop-of-parallel-optimization-with-jump-and-juniper/65031 "2021-07-23T07:06:14Z")

</div>

I have an MINLP problem that I model and solve in parallel in JuMP using Juniper with Cbc and IPOPT as mip and nlp solvers, respectively. I cannot provide an MWE, but my code works fine with shorter simulations (this mig…

---

## [ANN: JuMP-dev 2021](https://discourse.julialang.org/t/ann-jump-dev-2021/60406)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 5\
**Last updated:** [July 23, 2021, 6:19am UTC](https://discourse.julialang.org/t/ann-jump-dev-2021/60406 "2021-07-23T06:19:21Z")

</div>

Dear all, We are pleased to announce that JuMP-dev 2021 will be co-located with JuliaCon 2021! The purpose of JuMP-dev is to bring together students, researchers, and practitioners with interests in the software aspect…

---

## [Turing.jl: UniformDraw distribution?](https://discourse.julialang.org/t/turing-jl-uniformdraw-distribution/65123)

<div class="topic-metadata">

**Author:** [@Hakan\_Kjellerstrand](https://discourse.julialang.org/u/Hakan_Kjellerstrand)\
**Replies:** 2\
**Last updated:** [July 23, 2021, 4:55am UTC](https://discourse.julialang.org/t/turing-jl-uniformdraw-distribution/65123 "2021-07-23T04:55:20Z")

</div>

Is there a “UniformDraw” distribution in Turing.jl / Distributions.jl, i.e. given an array of element, the distribution selects one of the elements randomly. Example: x = \[1,10,32,100\] val ~ UniformDraw(x) val is then…

---

## [Juliacon21-gpu\_workshop notebook \`could not load library "libcuda.so.1"\`](https://discourse.julialang.org/t/juliacon21-gpu-workshop-notebook-could-not-load-library-libcuda-so-1/65014)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 11\
**Last updated:** [July 23, 2021, 12:39am UTC](https://discourse.julialang.org/t/juliacon21-gpu-workshop-notebook-could-not-load-library-libcuda-so-1/65014 "2021-07-23T00:39:06Z")

</div>

I am trying to get started on the JuliaCon GPU tutorial. I have tried everything I can think of I’m on Ubuntu 20.04.2 LTS. If I use CUDA from the repl, it is successful. If I try it from a jupyter notebook, launched f…

---

## [Question regarding size of variable with JuMP and Ipopt](https://discourse.julialang.org/t/question-regarding-size-of-variable-with-jump-and-ipopt/65128)

<div class="topic-metadata">

**Author:** [@ylish](https://discourse.julialang.org/u/ylish)\
**Replies:** 11\
**Last updated:** [July 22, 2021, 11:55pm UTC](https://discourse.julialang.org/t/question-regarding-size-of-variable-with-jump-and-ipopt/65128 "2021-07-22T23:55:58Z")

</div>

Hello everybody, I am new to JuMP and optimization using Julia and I am wondering if someone could explain to me why the following occurs. If I run the toy problem below with size\_overall = 100 it takes some time, call …

---

## [Using nlsolve inside Turing.jl- ForwardDiff.Dual type error](https://discourse.julialang.org/t/using-nlsolve-inside-turing-jl-forwarddiff-dual-type-error/64986)

<div class="topic-metadata">

**Author:** [@stefan\_petrov\_123](https://discourse.julialang.org/u/stefan_petrov_123)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 11:45pm UTC](https://discourse.julialang.org/t/using-nlsolve-inside-turing-jl-forwarddiff-dual-type-error/64986 "2021-07-22T23:45:46Z")

</div>

Hi, I’m trying to assess if Turing is a good fit for a particular dynamic pricing-type problem I have, and I’m wondering if it’s possible to use nlsolve inside. I’m sure it is, but I can’t figure it out. The code bello…

---

## [Displaying (and formatting) optimal regression curve equation](https://discourse.julialang.org/t/displaying-and-formatting-optimal-regression-curve-equation/65143)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 0\
**Last updated:** [July 22, 2021, 10:50pm UTC](https://discourse.julialang.org/t/displaying-and-formatting-optimal-regression-curve-equation/65143 "2021-07-22T22:50:45Z")

</div>

Hello Everyone: Is there a way to display and format the regression curve equation when plotting? Step 1: using Lathe.preprocess: TrainTestSplit train, test =TestTrainSplit(MagicalCreatures, .80) Step 2: Informing …

---

## [Makie: overlaying scatter plot onto heatmap in Pluto](https://discourse.julialang.org/t/makie-overlaying-scatter-plot-onto-heatmap-in-pluto/65141)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 10:48pm UTC](https://discourse.julialang.org/t/makie-overlaying-scatter-plot-onto-heatmap-in-pluto/65141 "2021-07-22T22:48:19Z")

</div>

I am working inside a Pluto notebook with WGLMakie and I have 3D volumes that I scrolling through using a PlutoUI.Slider and heatmap(volume\[:, :, b\]) where b is a Slider element. I have a label (segmentation) that I want…

---

## [MethodError: No Method Matching Learning Curve](https://discourse.julialang.org/t/methoderror-no-method-matching-learning-curve/65046)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 10:33pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-learning-curve/65046 "2021-07-22T22:33:32Z")

</div>

Hello Everyone: I am attempting to run: curve\_clf = MLJ.learning\_curve(r\_clf, feat, targ, range=r\_clf, resampling=MLJ.Holdout(fraction\_train=0.8), measure=MLJ.cross\_entropy) But am encounte…

---

## [LightHouse.jl Implementation](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 10:29pm UTC](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051 "2021-07-22T22:29:50Z")

</div>

Good Day: II am attempting to create an ROC\_CURVE with Lighthouse.jl. I am attempting to generate one with the MLJ.@load\_boston dataset. My general questions are: How do I designate class? names(df)? Should I: cl…

---

## [Help with Turing.jl: BetaBinomial ArgumentError: BetaBinomial: the condition n \>= zero(n) && (α \>= zero(α) && β \>= zero(β)) is not satisfied](https://discourse.julialang.org/t/help-with-turing-jl-betabinomial-argumenterror-betabinomial-the-condition-n-zero-n-zero-zero-is-not-satisfied/64929)

<div class="topic-metadata">

**Author:** [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Replies:** 7\
**Last updated:** [July 22, 2021, 1:39pm UTC](https://discourse.julialang.org/t/help-with-turing-jl-betabinomial-argumenterror-betabinomial-the-condition-n-zero-n-zero-zero-is-not-satisfied/64929 "2021-07-22T13:39:52Z")

</div>

New to Julia, but have had my looks on it for a while now and finally got a bit of extra time during the Summer the play around with it, wuhuu! My goal is to implement a small program that I already have running in Pyth…

---

## [Layout pv panel optimization](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505)

<div class="topic-metadata">

**Author:** [@alfajar\_nugraha](https://discourse.julialang.org/u/alfajar_nugraha)\
**Replies:** 8\
**Last updated:** [July 22, 2021, 8:54am UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505 "2021-07-22T08:54:17Z")

</div>

matrix for layout pv panel optimization

---

## [Any Julia’s equivalent to Python’s pakacges: tespy, fluprodia](https://discourse.julialang.org/t/any-julia-s-equivalent-to-python-s-pakacges-tespy-fluprodia/65090)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 0\
**Last updated:** [July 22, 2021, 8:36am UTC](https://discourse.julialang.org/t/any-julia-s-equivalent-to-python-s-pakacges-tespy-fluprodia/65090 "2021-07-22T08:36:32Z")

</div>

Hello, there are packages in Julia equivalent or similar to: tespy fluprodia, from Python. It is of our interest Refrigeration Machine model, AND PARTICULARLY, Plotting and animating States into the Diagram All help,…

---

## [Error building 'MPI\`, libmpi could not be found](https://discourse.julialang.org/t/error-building-mpi-libmpi-could-not-be-found/63785)

<div class="topic-metadata">

**Author:** [@francispoulin](https://discourse.julialang.org/u/francispoulin)\
**Replies:** 28\
**Last updated:** [July 22, 2021, 1:17am UTC](https://discourse.julialang.org/t/error-building-mpi-libmpi-could-not-be-found/63785 "2021-07-22T01:17:37Z")

</div>

I am trying to build MPI on a cluster. I asked for instructions here but it was suggested that I go to Discourse. I have specified the variables that I need to find libmpi but when I try building I get an error. To tr…

---

## [Suggestions for improved learning in neural network based controller for rotary inverted pendulum](https://discourse.julialang.org/t/suggestions-for-improved-learning-in-neural-network-based-controller-for-rotary-inverted-pendulum/65009)

<div class="topic-metadata">

**Author:** [@shafeeq\_Elanattil](https://discourse.julialang.org/u/shafeeq_Elanattil)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 12:49am UTC](https://discourse.julialang.org/t/suggestions-for-improved-learning-in-neural-network-based-controller-for-rotary-inverted-pendulum/65009 "2021-07-22T00:49:05Z")

</div>

Hello, I am new to Julia, and trying to make use of neural network based controllers for robotics applications. Here I am trying balance an rotary inverted pendulum using neural network based controller. The code is giv…

---

## [CUDA aware MPI fails but runs on multiple GPUs](https://discourse.julialang.org/t/cuda-aware-mpi-fails-but-runs-on-multiple-gpus/65059)

<div class="topic-metadata">

**Author:** [@francispoulin](https://discourse.julialang.org/u/francispoulin)\
**Replies:** 5\
**Last updated:** [July 21, 2021, 9:32pm UTC](https://discourse.julialang.org/t/cuda-aware-mpi-fails-but-runs-on-multiple-gpus/65059 "2021-07-21T21:32:10Z")

</div>

I am running the library ImplicitGlobalGrid.jl on a server to learn about multi GPU computing. The server has MPI and CUDA but when I try MPI.has\_cuda() I get false, which tells me that the MPI is not CUDA aware. Howeve…

---

## [Writing pytorch layers in julia](https://discourse.julialang.org/t/writing-pytorch-layers-in-julia/65064)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 7:26pm UTC](https://discourse.julialang.org/t/writing-pytorch-layers-in-julia/65064 "2021-07-21T19:26:02Z")

</div>

Hi All, From time to time, I am pushed to rewrite Mill.jl (multi-instance learning library) in pytorch. While that might be possible, i would like to avoid it, as we made heavy use of custom written gradients to help us…

---

## [MethodError: Evolution of Out Of Sample Performance Range](https://discourse.julialang.org/t/methoderror-evolution-of-out-of-sample-performance-range/65041)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 1\
**Last updated:** [July 21, 2021, 3:46pm UTC](https://discourse.julialang.org/t/methoderror-evolution-of-out-of-sample-performance-range/65041 "2021-07-21T15:46:33Z")

</div>

Hello Folks: I am using MLJ@.load\_boston data where feat, targ = MLJ.@load\_boston feat = DataFrames.DataFrame(feat) targ = categorical(targ) I have split the categorical.array using: rng = 52 TRAIN, TEST = partit…

---

## [Get DCT coefficients of jpeg image](https://discourse.julialang.org/t/get-dct-coefficients-of-jpeg-image/64640)

<div class="topic-metadata">

**Author:** [@pakk-minidose](https://discourse.julialang.org/u/pakk-minidose)\
**Replies:** 11\
**Last updated:** [July 21, 2021, 2:05pm UTC](https://discourse.julialang.org/t/get-dct-coefficients-of-jpeg-image/64640 "2021-07-21T14:05:59Z")

</div>

Hello, I would like to obtain DCT coefficients of a jpeg image. The Phil Sallee’s JPEG toolbox in MATLAB returns these as an array (the original website is not active, but some of the code can be downloaded on Jessica …

---

## [Getting NaN output from JuMP variable after solving](https://discourse.julialang.org/t/getting-nan-output-from-jump-variable-after-solving/65026)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 4\
**Last updated:** [July 21, 2021, 1:22pm UTC](https://discourse.julialang.org/t/getting-nan-output-from-jump-variable-after-solving/65026 "2021-07-21T13:22:20Z")

</div>

Hi All, I am running a linear program with Gurobi. The variable is set as @variable(mod2,0\<=L\_time\_bC\[b in 1:18, c in 1:3\] ) \`\`\` I am using julia 1.62 with \[c52e3926\] Atom v0.12.32 \[336ed68f\] CSV v0.8.5 \[9961bab8\] …

---

## [If tuplex can do it. So can Julia!](https://discourse.julialang.org/t/if-tuplex-can-do-it-so-can-julia/64979)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [July 21, 2021, 8:22am UTC](https://discourse.julialang.org/t/if-tuplex-can-do-it-so-can-julia/64979 "2021-07-21T08:22:45Z")

</div>

I got curious about Tuplex as it talked about at work and I started to read some of its papers and I found Today’s data science pipelines often rely on user-defined functions (UDFs) written in Python. But interpreted P…

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

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