# Specific Domains

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

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

**Page:** 431

---

## [Flux model-zoo: Error running vae\_mnist.jl](https://discourse.julialang.org/t/flux-model-zoo-error-running-vae-mnist-jl/44076)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 3\
**Last updated:** [August 3, 2020, 4:52pm UTC](https://discourse.julialang.org/t/flux-model-zoo-error-running-vae-mnist-jl/44076 "2020-08-03T16:52:00Z")

</div>

Hi, I am trying to run the vae\_mnist.jl script from model zoo (https://github.com/FluxML/model-zoo/blob/master/vision/vae\_mnist/vae\_mnist.jl). However, I am getting the following error. ( I use optirun to enable GPU, bu…

---

## [On the output value of JuMP](https://discourse.julialang.org/t/on-the-output-value-of-jump/44084)

<div class="topic-metadata">

**Author:** [@dty](https://discourse.julialang.org/u/dty)\
**Replies:** 6\
**Last updated:** [August 3, 2020, 9:21am UTC](https://discourse.julialang.org/t/on-the-output-value-of-jump/44084 "2020-08-03T09:21:35Z")

</div>

How to output the value of my decision variable in workspace？ I tried to use value at the end of the program, but it didn’t work. At present, the effective way is to write value() one by one in repl.

---

## [Efficient Black/White Colormap plot](https://discourse.julialang.org/t/efficient-black-white-colormap-plot/44157)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 1\
**Last updated:** [August 3, 2020, 2:29am UTC](https://discourse.julialang.org/t/efficient-black-white-colormap-plot/44157 "2020-08-03T02:29:03Z")

</div>

I’m trying to efficiently create visualizations of a 2D Ising model (i.e., see Ising model - Wikipedia). Using Julia plots contour seems wasteful, and is definitely slow. Is there some simple black/white plot that coul…

---

## [Plot 2D graph ,color of scatter points associate with value](https://discourse.julialang.org/t/plot-2d-graph-color-of-scatter-points-associate-with-value/44148)

<div class="topic-metadata">

**Author:** [@Dyranne](https://discourse.julialang.org/u/Dyranne)\
**Replies:** 0\
**Last updated:** [August 2, 2020, 7:17pm UTC](https://discourse.julialang.org/t/plot-2d-graph-color-of-scatter-points-associate-with-value/44148 "2020-08-02T19:17:15Z")

</div>

The first question is using ORCA julia\> using ORCA \[ Info: Precompiling ORCA \[47be7bcc-f1a6-5447-8b36-7eeeff7534fd\] ERROR: LoadError: ORCA not installed properly. Please call \`Pkg.build("ORCA")\` Stacktrace: \[1\] error(:…

---

## [Variable declaration](https://discourse.julialang.org/t/variable-declaration/44142)

<div class="topic-metadata">

**Author:** [@mamo](https://discourse.julialang.org/u/mamo)\
**Replies:** 2\
**Last updated:** [August 2, 2020, 6:50pm UTC](https://discourse.julialang.org/t/variable-declaration/44142 "2020-08-02T18:50:09Z")

</div>

Dear, send me some suggestion for a proper declaration of this variable @variable(model, CHANGE\[k in FAMILY, l in FAMILY, j in UNITS, t in TIME, t1 in TIME: k\<\>l and t+1=t1\], Bin) The problem is in k\<\>l (k must be di…

---

## [10 min Paper Discussion + Flux Impl.: Towards Learning Convolutions from Scratch](https://discourse.julialang.org/t/10-min-paper-discussion-flux-impl-towards-learning-convolutions-from-scratch/44114)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 0\
**Last updated:** [August 2, 2020, 1:45am UTC](https://discourse.julialang.org/t/10-min-paper-discussion-flux-impl-towards-learning-convolutions-from-scratch/44114 "2020-08-02T01:45:57Z")

</div>

Do we do paper discussions for fun? Figured I’d try it out to see who does CV here and maybe make some new friends. I’m not doing any professional CV work now, did some professionally a few years back, but am getting bac…

---

## [JuMP on repl.it (Julia 1.3)](https://discourse.julialang.org/t/jump-on-repl-it-julia-1-3/42662)

<div class="topic-metadata">

**Author:** [@elalaouifaris](https://discourse.julialang.org/u/elalaouifaris)\
**Replies:** 7\
**Last updated:** [August 2, 2020, 2:11pm UTC](https://discourse.julialang.org/t/jump-on-repl-it-julia-1-3/42662 "2020-08-02T14:11:47Z")

</div>

Hi, Just trying to use Julia on the repl.it website. There you can spin up an instance with Julia 1.3 pre-configured. using JuMP in it results in a compilation error. Is this a known problem? is there a way to make Ju…

---

## [How to define laplacian in Flux or Zygote?](https://discourse.julialang.org/t/how-to-define-laplacian-in-flux-or-zygote/44121)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 0\
**Last updated:** [August 2, 2020, 7:05am UTC](https://discourse.julialang.org/t/how-to-define-laplacian-in-flux-or-zygote/44121 "2020-08-02T07:05:21Z")

</div>

I want to solve a PDE using a neural network and I need to calculate the laplacian of my network.

---

## [Non-diagonal noise](https://discourse.julialang.org/t/non-diagonal-noise/44004)

<div class="topic-metadata">

**Author:** [@mzhai2](https://discourse.julialang.org/u/mzhai2)\
**Replies:** 2\
**Last updated:** [August 1, 2020, 5:13pm UTC](https://discourse.julialang.org/t/non-diagonal-noise/44004 "2020-08-01T17:13:11Z")

</div>

How am I supposed to use non-diagonal noise when du is a matrix? When I run the example below I get: BoundsError: attempt to access 2-element Array{Float64,1} at index \[1, 2\] using DifferentialEquations, LinearAlgebra …

---

## [bilevelJuMP](https://discourse.julialang.org/t/bileveljump/44088)

<div class="topic-metadata">

**Author:** [@dty](https://discourse.julialang.org/u/dty)\
**Replies:** 1\
**Last updated:** [August 1, 2020, 3:06pm UTC](https://discourse.julialang.org/t/bileveljump/44088 "2020-08-01T15:06:25Z")

</div>

@joaquimg I’m sorry to disturb you. Please tell me something about bilevel jump. When defining objective functions in the bilevel jump package, is it not allowed to minimize the sum of multiple objective functions? In …

---

## [How to set histogram alignment in Plots.jl](https://discourse.julialang.org/t/how-to-set-histogram-alignment-in-plots-jl/4273)

<div class="topic-metadata">

**Author:** [@mbeltagy](https://discourse.julialang.org/u/mbeltagy)\
**Replies:** 13\
**Last updated:** [August 1, 2020, 2:47pm UTC](https://discourse.julialang.org/t/how-to-set-histogram-alignment-in-plots-jl/4273 "2020-08-01T14:47:11Z")

</div>

In matplotlib.pyplot.hist their is an align keyword that changes alignment of the histogram from “mid”, “left”, or “right”. This keyword in currently not supported on Plots.jl. It there a way I could force pass it to the…

---

## [Syntax for custom cost function for ODE parameter estimation](https://discourse.julialang.org/t/syntax-for-custom-cost-function-for-ode-parameter-estimation/43467)

<div class="topic-metadata">

**Author:** [@vaglino](https://discourse.julialang.org/u/vaglino)\
**Replies:** 3\
**Last updated:** [August 1, 2020, 12:04pm UTC](https://discourse.julialang.org/t/syntax-for-custom-cost-function-for-ode-parameter-estimation/43467 "2020-08-01T12:04:55Z")

</div>

Hi, I’m trying to write my own cost function for parameter estimation of an ode model. I am trying to weight the loss by the time t. Based on the documentation I came up with the following, but I’m unsure about the cor…

---

## [Flux - Batch data loop in callback causing GPU Memory Error](https://discourse.julialang.org/t/flux-batch-data-loop-in-callback-causing-gpu-memory-error/33292)

<div class="topic-metadata">

**Author:** [@GdMacmillan](https://discourse.julialang.org/u/GdMacmillan)\
**Replies:** 5\
**Last updated:** [August 1, 2020, 11:15am UTC](https://discourse.julialang.org/t/flux-batch-data-loop-in-callback-causing-gpu-memory-error/33292 "2020-08-01T11:15:53Z")

</div>

I’m trying to build a general tutorial for the basic build of an image classifier in flux on a Colab notebook.. The dataset is Fashion MNIST. Building it out more and more I have found a problem with my code, Recently I…

---

## [How to change field names and types of a DataFrame](https://discourse.julialang.org/t/how-to-change-field-names-and-types-of-a-dataframe/43991)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 14\
**Last updated:** [August 1, 2020, 10:31am UTC](https://discourse.julialang.org/t/how-to-change-field-names-and-types-of-a-dataframe/43991 "2020-08-01T10:31:06Z")

</div>

I imported a xlsx file to an array a using XLSX.jl. But now I have no real names for the fields in df and the types are all Any. I changed names using rename! but I don’t know how to change types respectively to String,…

---

## [Setting environment variables for a package "SCIP"](https://discourse.julialang.org/t/setting-environment-variables-for-a-package-scip/43839)

<div class="topic-metadata">

**Author:** [@mayar](https://discourse.julialang.org/u/mayar)\
**Replies:** 27\
**Last updated:** [July 31, 2020, 9:46pm UTC](https://discourse.julialang.org/t/setting-environment-variables-for-a-package-scip/43839 "2020-07-31T21:46:07Z")

</div>

hello there, I need to set the environment variable for SCIP package I am wokring on windows 10…so I opened: Advanced system Settings…Advanced…Environment Variables I created a new variable and added the path as: C:…

---

## [Tips for large-ish latent variable model in Turing](https://discourse.julialang.org/t/tips-for-large-ish-latent-variable-model-in-turing/43388)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 3\
**Last updated:** [July 31, 2020, 7:12pm UTC](https://discourse.julialang.org/t/tips-for-large-ish-latent-variable-model-in-turing/43388 "2020-07-31T19:12:54Z")

</div>

Hi - I have a data set (~900 x 120) on which I’m trying to do dimension reduction. Eventually, I want to test some factor mixture models, but right now, I simply want to do a basic factor analysis. The data set isn’t hug…

---

## [Is QuantumLab.jl abandoned?](https://discourse.julialang.org/t/is-quantumlab-jl-abandoned/33136)

<div class="topic-metadata">

**Author:** [@XVilka](https://discourse.julialang.org/u/XVilka)\
**Replies:** 18\
**Last updated:** [July 31, 2020, 4:51pm UTC](https://discourse.julialang.org/t/is-quantumlab-jl-abandoned/33136 "2020-07-31T16:51:37Z")

</div>

There is a quantum chemistry and physics framework called QuantumLab.jl, but It seems there are no updates for a while, and it doesn’t work with the latest Julia and libraries. Does anyone know if there are any alternat…

---

## [Convert Optim objective value back to a Float](https://discourse.julialang.org/t/convert-optim-objective-value-back-to-a-float/43942)

<div class="topic-metadata">

**Author:** [@tyleransom](https://discourse.julialang.org/u/tyleransom)\
**Replies:** 6\
**Last updated:** [July 30, 2020, 7:32pm UTC](https://discourse.julialang.org/t/convert-optim-objective-value-back-to-a-float/43942 "2020-07-30T19:32:16Z")

</div>

I am working with the code in this gist. In the file test\_autochoice\_mew2.jl , I have the following pieces of code: \[...\] T = promote\_type(promote\_type(promote\_type(eltype(X),eltype(b)),eltype(Z)),eltype(W)) \[...\] ℓ …

---

## [Problem with annotations!() in Makie](https://discourse.julialang.org/t/problem-with-annotations-in-makie/43929)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 6:47pm UTC](https://discourse.julialang.org/t/problem-with-annotations-in-makie/43929 "2020-07-30T18:47:09Z")

</div>

This snippet: using AbstractPlotting, Makie, Random scene = Scene(resolution = (1200, 1500)) poly = Vec2f0.(1:10, rand(10)) labels = \["$i" for i in 1:10\] scatter!(scene, poly, color = :blue) annotations!(scene, labels,…

---

## [Question about DelimitedFiles](https://discourse.julialang.org/t/question-about-delimitedfiles/43980)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 5:45pm UTC](https://discourse.julialang.org/t/question-about-delimitedfiles/43980 "2020-07-30T17:45:44Z")

</div>

I’m having problems using the readdlm function of the DelimitedFiles package. I am reading two instances from a file. Both have this interface: 20\_190\\c\_v20\_a190\_d4.txt 20 190 4 0 1 71 0 2 65 0 3 66 0 4 78 0 5 59 ... 2…

---

## [Flux: Error when computing gradient of broadcasted ifelse on GPU](https://discourse.julialang.org/t/flux-error-when-computing-gradient-of-broadcasted-ifelse-on-gpu/43907)

<div class="topic-metadata">

**Author:** [@raff](https://discourse.julialang.org/u/raff)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 4:30pm UTC](https://discourse.julialang.org/t/flux-error-when-computing-gradient-of-broadcasted-ifelse-on-gpu/43907 "2020-07-30T16:30:22Z")

</div>

Here is a code example X = rand(3,3) .- 0.4 X = X |\> cu f(X) = sum(ifelse.(X .\> 0, X, 1f0)) gradient(f, X) And here is the error message ERROR: TypeError: non-boolean (ForwardDiff.Dual{Nothing,Bool,3}) used in boolean…

---

## [Inspecting and controlling sckit-learn version in ScikitLearn.jl](https://discourse.julialang.org/t/inspecting-and-controlling-sckit-learn-version-in-scikitlearn-jl/29872)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 4\
**Last updated:** [July 30, 2020, 2:49pm UTC](https://discourse.julialang.org/t/inspecting-and-controlling-sckit-learn-version-in-scikitlearn-jl/29872 "2020-07-30T14:49:13Z")

</div>

How do determine which version of the python library scikit-learn my ScikitLearn.jl installation is using? Is there any way to control which version is used? If not, how is the version installed determined? Does it depen…

---

## [Flux load and save](https://discourse.julialang.org/t/flux-load-and-save/43954)

<div class="topic-metadata">

**Author:** [@Ruan\_Stander](https://discourse.julialang.org/u/Ruan_Stander)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 11:38am UTC](https://discourse.julialang.org/t/flux-load-and-save/43954 "2020-07-30T11:38:46Z")

</div>

Does Flux Load/Save require the same variable name? @save "30x30\_64x64.bson" model @load "30x30\_64x64.bson" model1 Error: Key model1 not found

---

## [How to resize a very large array or image without changing its number type](https://discourse.julialang.org/t/how-to-resize-a-very-large-array-or-image-without-changing-its-number-type/43936)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 8:51am UTC](https://discourse.julialang.org/t/how-to-resize-a-very-large-array-or-image-without-changing-its-number-type/43936 "2020-07-30T08:51:14Z")

</div>

Hi, I would like to resize an array (or perhaps an image) and get a result of the same type. For instance, in my code below: N = 10 img = rand(Int8,N,N,3) img = imresize(img,ratio=(0.7, 0.7, 1)) the outupt img change…

---

## [How to create MixtureModel using distributions from different families](https://discourse.julialang.org/t/how-to-create-mixturemodel-using-distributions-from-different-families/43874)

<div class="topic-metadata">

**Author:** [@vkv](https://discourse.julialang.org/u/vkv)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 8:25am UTC](https://discourse.julialang.org/t/how-to-create-mixturemodel-using-distributions-from-different-families/43874 "2020-07-30T08:25:16Z")

</div>

I want to create a MixtureModel from Distributions.jl using Normal distribution and Uniform distribution. Is there a way to do this?

---

## [PowerModels.jl building a data dictionary](https://discourse.julialang.org/t/powermodels-jl-building-a-data-dictionary/43856)

<div class="topic-metadata">

**Author:** [@fnbillimoria](https://discourse.julialang.org/u/fnbillimoria)\
**Replies:** 5\
**Last updated:** [July 30, 2020, 4:45am UTC](https://discourse.julialang.org/t/powermodels-jl-building-a-data-dictionary/43856 "2020-07-30T04:45:22Z")

</div>

I am using PowerModels.jl and PowerModelsAnnex.jl. Are there any helper functions available to build the PowerModels.jl data dictionary? I have an excel / csv file with the relevant data for the test case, which I wo…

---

## [PDF Parser and Reading API](https://discourse.julialang.org/t/pdf-parser-and-reading-api/4797)

<div class="topic-metadata">

**Author:** [@sambitdash](https://discourse.julialang.org/u/sambitdash)\
**Replies:** 42\
**Last updated:** [July 30, 2020, 4:35am UTC](https://discourse.julialang.org/t/pdf-parser-and-reading-api/4797 "2020-07-30T04:35:54Z")

</div>

Hi All, I am developing a PDF Library for doing some simple tasks like extracting texts and PDF file contents and attributes. The library is written in pure Julia (save some dependencies on some filter libraries). I am …

---

## [Unable to delete constraints stored in dictionaries using JuMP@.constraint macro](https://discourse.julialang.org/t/unable-to-delete-constraints-stored-in-dictionaries-using-jump-constraint-macro/43920)

<div class="topic-metadata">

**Author:** [@srajan76](https://discourse.julialang.org/u/srajan76)\
**Replies:** 6\
**Last updated:** [July 30, 2020, 1:15am UTC](https://discourse.julialang.org/t/unable-to-delete-constraints-stored-in-dictionaries-using-jump-constraint-macro/43920 "2020-07-30T01:15:18Z")

</div>

I am unable to delete the constraints which is created and stored in a dictionary using the JuMP.@constraint macro. the constraints are added in the form for i in array d\[i\] = JuMP.@constraint(model, variable\[i\] == co…

---

## [Cleaning information to solve multiple instances of a JuMP model](https://discourse.julialang.org/t/cleaning-information-to-solve-multiple-instances-of-a-jump-model/43930)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 3\
**Last updated:** [July 30, 2020, 1:02am UTC](https://discourse.julialang.org/t/cleaning-information-to-solve-multiple-instances-of-a-jump-model/43930 "2020-07-30T01:02:15Z")

</div>

Hi all. I created an extensive program using JuMP library, to solve a specific model. To solve instances, I did make a routine to run for each instance all at once, using a loop and include to run. But I notice that it …

---

## [Parallel Solves in Gurobi.jl](https://discourse.julialang.org/t/parallel-solves-in-gurobi-jl/9908)

<div class="topic-metadata">

**Author:** [@vtjeng](https://discourse.julialang.org/u/vtjeng)\
**Replies:** 7\
**Last updated:** [July 29, 2020, 9:26pm UTC](https://discourse.julialang.org/t/parallel-solves-in-gurobi-jl/9908 "2020-07-29T21:26:47Z")

</div>

I have a JuMP (mixed-integer) model where I’m trying to determine the upper and lower bounds on many variables. Each individual solve is very quick, but since I have many variables (~1,000), the overall solve time is slo…

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

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