# Specific Domains

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

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

**Page:** 421

---

## [Plots: bars side by side](https://discourse.julialang.org/t/plots-bars-side-by-side/6655)

<div class="topic-metadata">

**Author:** [@kaslusimoes](https://discourse.julialang.org/u/kaslusimoes)\
**Replies:** 14\
**Last updated:** [September 20, 2020, 9:46am UTC](https://discourse.julialang.org/t/plots-bars-side-by-side/6655 "2020-09-20T09:46:58Z")

</div>

Hi there, I’m using Plots.jl (with PyPlot as the backend) and trying to plot some bars side by side, as in the following example from matplotlib: http://matplotlib.org/examples/api/barchart\_demo.html (figure below) L…

---

## [How to get the rendered window size when directly using PlotlyJS](https://discourse.julialang.org/t/how-to-get-the-rendered-window-size-when-directly-using-plotlyjs/26610)

<div class="topic-metadata">

**Author:** [@kobussch](https://discourse.julialang.org/u/kobussch)\
**Replies:** 1\
**Last updated:** [September 19, 2020, 3:57pm UTC](https://discourse.julialang.org/t/how-to-get-the-rendered-window-size-when-directly-using-plotlyjs/26610 "2020-09-19T15:57:37Z")

</div>

I am using Spencer Lyon’s PlotlyJS package as basis for an interactive data visualization tool. It is fantastic, but I am stuck on a particular issue: how to get the rendered size of the plot area (in pixels) when it is …

---

## [How to make if in the objective function](https://discourse.julialang.org/t/how-to-make-if-in-the-objective-function/46859)

<div class="topic-metadata">

**Author:** [@sogrbilja](https://discourse.julialang.org/u/sogrbilja)\
**Replies:** 14\
**Last updated:** [September 19, 2020, 10:53am UTC](https://discourse.julialang.org/t/how-to-make-if-in-the-objective-function/46859 "2020-09-19T10:53:22Z")

</div>

Here is the function @objective( prmx, Min, sum( sum( UNITS\[u\_k\]\["cap"\] - sum( PRODAMOUNT\[op\_k, u\_k, t\] \* \_PRODUCTs…

---

## [Model updating: Using previously computed posterior as prior after new data acquisition](https://discourse.julialang.org/t/model-updating-using-previously-computed-posterior-as-prior-after-new-data-acquisition/46869)

<div class="topic-metadata">

**Author:** [@Camilo1704](https://discourse.julialang.org/u/Camilo1704)\
**Replies:** 3\
**Last updated:** [September 18, 2020, 8:38pm UTC](https://discourse.julialang.org/t/model-updating-using-previously-computed-posterior-as-prior-after-new-data-acquisition/46869 "2020-09-18T20:38:51Z")

</div>

Hi guys! I’m working with some models using a bayesian framework (Soss and Turing). I was wondering, once I have already contrasted my prior with the data and obtained the posterior distribution, how to add more data and…

---

## [Why the results of my model remain the same even if the objective value changes?](https://discourse.julialang.org/t/why-the-results-of-my-model-remain-the-same-even-if-the-objective-value-changes/46817)

<div class="topic-metadata">

**Author:** [@sogrbilja](https://discourse.julialang.org/u/sogrbilja)\
**Replies:** 5\
**Last updated:** [September 18, 2020, 7:56pm UTC](https://discourse.julialang.org/t/why-the-results-of-my-model-remain-the-same-even-if-the-objective-value-changes/46817 "2020-09-18T19:56:22Z")

</div>

I am struggling with modeling so much, for me what is logical is not so in the model. The next thing is how to force the system to change results by changing the objective value, so let me explain. I see we can only hav…

---

## [MLJ confusion\_matrix() - MethodError](https://discourse.julialang.org/t/mlj-confusion-matrix-methoderror/46856)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 5\
**Last updated:** [September 18, 2020, 7:39pm UTC](https://discourse.julialang.org/t/mlj-confusion-matrix-methoderror/46856 "2020-09-18T19:39:33Z")

</div>

I am trying to make a RF predictor of a categorical variable (3 levels), and then look at how well the model works. I mostly followed the steps in the Getting Started section of the docs - here’s a MWE: using DataFrames…

---

## [Fading two images together](https://discourse.julialang.org/t/fading-two-images-together/46843)

<div class="topic-metadata">

**Author:** [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Replies:** 7\
**Last updated:** [September 18, 2020, 4:28pm UTC](https://discourse.julialang.org/t/fading-two-images-together/46843 "2020-09-18T16:28:48Z")

</div>

I’m trying make a video that includes a transition where one image fades into a different image. I would like to do this programmatically (as opposed to using GIMP or video software) so that the result is repeatable and …

---

## [MeshIO, BasicGeometry, AbstractPlotting -- type mismatchs and incompatibility](https://discourse.julialang.org/t/meshio-basicgeometry-abstractplotting-type-mismatchs-and-incompatibility/46850)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 0\
**Last updated:** [September 18, 2020, 2:24pm UTC](https://discourse.julialang.org/t/meshio-basicgeometry-abstractplotting-type-mismatchs-and-incompatibility/46850 "2020-09-18T14:24:28Z")

</div>

I had some Julia code that loaded in OBJ format files into Meshes and then plotted them with mesh! or wireframe! using Makie, etc. I stored the obj after loading in a struct where the obj mesh type had to be set to: Geo…

---

## [Flux: concatenate layers](https://discourse.julialang.org/t/flux-concatenate-layers/18877)

<div class="topic-metadata">

**Author:** [@zot](https://discourse.julialang.org/u/zot)\
**Replies:** 7\
**Last updated:** [September 18, 2020, 11:13am UTC](https://discourse.julialang.org/t/flux-concatenate-layers/18877 "2020-09-18T11:13:45Z")

</div>

I’m looking for a way to concatenate layers in Flux like this: Would this work for that? The input is an array of inputs to the layers and the output is the concatenation of the layers’ outputs. Creating it would be …

---

## [Flux.params does not recognize parameters with \`x -\> layer(x)\` syntax](https://discourse.julialang.org/t/flux-params-does-not-recognize-parameters-with-x-layer-x-syntax/46832)

<div class="topic-metadata">

**Author:** [@tgrassi](https://discourse.julialang.org/u/tgrassi)\
**Replies:** 4\
**Last updated:** [September 18, 2020, 11:10am UTC](https://discourse.julialang.org/t/flux-params-does-not-recognize-parameters-with-x-layer-x-syntax/46832 "2020-09-18T11:10:26Z")

</div>

Hi all, I have a basic question about params in Flux that confuses me. Why do I get different parameters in these two cases? Shouldn’t be equivalent? using Flux m1 = x -\> Dense(4, 2)(x) println(params(m1)) m2 = Dens…

---

## [Using \`include\` to bring variables into scope not working](https://discourse.julialang.org/t/using-include-to-bring-variables-into-scope-not-working/46636)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 10\
**Last updated:** [September 18, 2020, 8:48am UTC](https://discourse.julialang.org/t/using-include-to-bring-variables-into-scope-not-working/46636 "2020-09-18T08:48:21Z")

</div>

My workflow is to usually have a init.jl file which brings some variables into scope, e.g. saveDir = "/path". Then all my scripts start with include("init.jl"). However, I noticed that this wasn’t always working, so I en…

---

## [Reading DOT graph](https://discourse.julialang.org/t/reading-dot-graph/46683)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 1\
**Last updated:** [September 18, 2020, 1:19am UTC](https://discourse.julialang.org/t/reading-dot-graph/46683 "2020-09-18T01:19:41Z")

</div>

I have: julia\> using LightGraphs, GraphIO julia\> graph = loadgraph("gr.dot", "gr", DOTFormat()) ERROR: UndefVarError: DOT not defined Stacktrace: \[1\] DOTFormat() at /home/paul/.julia/packages/GraphIO/IgxnP/src/depreca…

---

## [Why the @objective value is negative?](https://discourse.julialang.org/t/why-the-objective-value-is-negative/46781)

<div class="topic-metadata">

**Author:** [@sogrbilja](https://discourse.julialang.org/u/sogrbilja)\
**Replies:** 2\
**Last updated:** [September 18, 2020, 1:18am UTC](https://discourse.julialang.org/t/why-the-objective-value-is-negative/46781 "2020-09-18T01:18:31Z")

</div>

I have this model (using cbc solver): @variable(premex, PRODAMOUNT\[op\_k in keys(\_ORDER\_PRODUCTs\_ALL), u\_k in keys(UNITS), t in TIME\], Int, lower\_bound = 0) @objective( premex, M…

---

## [SOCP modeling in Julia?](https://discourse.julialang.org/t/socp-modeling-in-julia/46808)

<div class="topic-metadata">

**Author:** [@Qinyang](https://discourse.julialang.org/u/Qinyang)\
**Replies:** 4\
**Last updated:** [September 18, 2020, 12:17am UTC](https://discourse.julialang.org/t/socp-modeling-in-julia/46808 "2020-09-18T00:17:36Z")

</div>

Hello friends, I am new to Julia and optimization. I have met a SOCP problem in my research. The model looks like the following the objective function is a quardratic one. PG(i), alpha(i) here are my variables. I main…

---

## [JuliaAstro travis ci migration](https://discourse.julialang.org/t/juliaastro-travis-ci-migration/46719)

<div class="topic-metadata">

**Author:** [@Bernard\_GODARD](https://discourse.julialang.org/u/Bernard_GODARD)\
**Replies:** 9\
**Last updated:** [September 18, 2020, 12:08am UTC](https://discourse.julialang.org/t/juliaastro-travis-ci-migration/46719 "2020-09-18T00:08:36Z")

</div>

Hi all I have received an email from travis ci saying that we need to migrate our projects from Travis-ci.org to Travis-ci.com. But it does not seem like I can migrate my project JuliaAstro/CALCEPH.jl Probably I don’t…

---

## [Bounded gradient descent on bounded interpolation searches \[NaN, NaN\]](https://discourse.julialang.org/t/bounded-gradient-descent-on-bounded-interpolation-searches-nan-nan/46346)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 2\
**Last updated:** [September 17, 2020, 8:32pm UTC](https://discourse.julialang.org/t/bounded-gradient-descent-on-bounded-interpolation-searches-nan-nan/46346 "2020-09-17T20:32:34Z")

</div>

I’m confused how\[NaN, NaN\] could ever come up, and am at a loss as to how go about debugging. The same code works for several other example data. It seems like the issue is that there are so many zeros but I would think …

---

## [When to use Tarrays](https://discourse.julialang.org/t/when-to-use-tarrays/46758)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 3\
**Last updated:** [September 17, 2020, 7:10pm UTC](https://discourse.julialang.org/t/when-to-use-tarrays/46758 "2020-09-17T19:10:31Z")

</div>

Hi everyone, I’m new to Turing/probabilistic programming and would like to know when you should use TArrays vs. normal arrays in the model definition. The package guidelines mention that “stack allocated variables” are…

---

## [VegaLite - Interactive plots?](https://discourse.julialang.org/t/vegalite-interactive-plots/46708)

<div class="topic-metadata">

**Author:** [@Episki](https://discourse.julialang.org/u/Episki)\
**Replies:** 3\
**Last updated:** [September 17, 2020, 3:04pm UTC](https://discourse.julialang.org/t/vegalite-interactive-plots/46708 "2020-09-17T15:04:05Z")

</div>

Hi, is there a way to make VegaLite.jl plots interactive? is it somehow planned for future releases?(Home · VegaLite.jl). I’m looking for something similar to Altair for Python (https://altair-viz.github.io/) which is …

---

## [Amortized Hierarchical Variational Model](https://discourse.julialang.org/t/amortized-hierarchical-variational-model/46665)

<div class="topic-metadata">

**Author:** [@darleybarreto](https://discourse.julialang.org/u/darleybarreto)\
**Replies:** 4\
**Last updated:** [September 17, 2020, 2:49pm UTC](https://discourse.julialang.org/t/amortized-hierarchical-variational-model/46665 "2020-09-17T14:49:16Z")

</div>

Suppose I have a complex neural network giving four parameters mu, precision, alpha, beta, which may be fixed for all training, learned during training or varying for each batch, such as: X,Y = next\_batch(data) (mu,prec…

---

## [Plot a bar from the following table Please](https://discourse.julialang.org/t/plot-a-bar-from-the-following-table-please/46779)

<div class="topic-metadata">

**Author:** [@Mun\_Barimukh](https://discourse.julialang.org/u/Mun_Barimukh)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 2:47pm UTC](https://discourse.julialang.org/t/plot-a-bar-from-the-following-table-please/46779 "2020-09-17T14:47:59Z")

</div>

I have the following table. Please help me out to get a bar chart from the table. using Pkg;Pkg.add(“StatsPlots”);using DataFrames;df=DataFrame(m) df2 = df |\> x → begin x\[:shoeprice\] =parse.(Int, replace.(df.shoeprice,…

---

## [StatsModels values(Schema) no longer works](https://discourse.julialang.org/t/statsmodels-values-schema-no-longer-works/46659)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 3\
**Last updated:** [September 17, 2020, 2:23am UTC](https://discourse.julialang.org/t/statsmodels-values-schema-no-longer-works/46659 "2020-09-17T02:23:20Z")

</div>

About a year ago, using StatsModels 0.6.5, the following code worked: function exploder(formula::FormulaTerm, df) s = schema(formula, df) function iscat(x) return isa(x, CategoricalTerm) end cats…

---

## [Package similar to Ludwig](https://discourse.julialang.org/t/package-similar-to-ludwig/46731)

<div class="topic-metadata">

**Author:** [@ludovic\_chauveau](https://discourse.julialang.org/u/ludovic_chauveau)\
**Replies:** 0\
**Last updated:** [September 16, 2020, 9:08pm UTC](https://discourse.julialang.org/t/package-similar-to-ludwig/46731 "2020-09-16T21:08:44Z")

</div>

Hi peeps, From long time ago I things do a solution to easily use ML & Deep Learning with Julia but I’m a newby in this domain. So I make research of No-Code / Low-Code AI / ML… I just found an existing open source pro…

---

## [Optimization errors with simple JuMP function using GLPK Optimizer](https://discourse.julialang.org/t/optimization-errors-with-simple-jump-function-using-glpk-optimizer/46652)

<div class="topic-metadata">

**Author:** [@standon41](https://discourse.julialang.org/u/standon41)\
**Replies:** 9\
**Last updated:** [September 16, 2020, 8:53pm UTC](https://discourse.julialang.org/t/optimization-errors-with-simple-jump-function-using-glpk-optimizer/46652 "2020-09-16T20:53:07Z")

</div>

Hello, I am a novice to Julia programming. Going though a tutorial I see myself running into this error and I am not quite sure what it means. Can someone who is an expert in JuMP and GLPK advise? Error: MethodError: …

---

## [Using optimizer callbacks within JuMP to terminate MIP solve](https://discourse.julialang.org/t/using-optimizer-callbacks-within-jump-to-terminate-mip-solve/46679)

<div class="topic-metadata">

**Author:** [@adow031](https://discourse.julialang.org/u/adow031)\
**Replies:** 5\
**Last updated:** [September 16, 2020, 8:23pm UTC](https://discourse.julialang.org/t/using-optimizer-callbacks-within-jump-to-terminate-mip-solve/46679 "2020-09-16T20:23:57Z")

</div>

I’ve got a MIP problem in JuMP, for which I would like the branch-and-bound to terminate as soon as the incumbent reaches a particular value, or as soon as the lower bound reaches a (different) particular value. I’ve fo…

---

## [Community chat 09/20 10 EST](https://discourse.julialang.org/t/community-chat-09-20-10-est/46417)

<div class="topic-metadata">

**Author:** [@McCoy](https://discourse.julialang.org/u/McCoy)\
**Replies:** 10\
**Last updated:** [September 16, 2020, 7:58pm UTC](https://discourse.julialang.org/t/community-chat-09-20-10-est/46417 "2020-09-16T19:58:45Z")

</div>

Please post topics of interest here.

---

## [\[ANN\] DiscreteEvents 0.3: discrete event generation and simulation](https://discourse.julialang.org/t/ann-discreteevents-0-3-discrete-event-generation-and-simulation/46477)

<div class="topic-metadata">

**Author:** [@pbayer](https://discourse.julialang.org/u/pbayer)\
**Replies:** 1\
**Last updated:** [September 16, 2020, 4:03pm UTC](https://discourse.julialang.org/t/ann-discreteevents-0-3-discrete-event-generation-and-simulation/46477 "2020-09-16T16:03:35Z")

</div>

A Julia package for discrete event generation and simulation I’m pleased to announce that DiscreteEvents 0.3 is now available from the Julia registry. It has been renamed from Simulate 0.2 following the discussion on Di…

---

## [Gabor Kernel](https://discourse.julialang.org/t/gabor-kernel/46380)

<div class="topic-metadata">

**Author:** [@rickybblock](https://discourse.julialang.org/u/rickybblock)\
**Replies:** 8\
**Last updated:** [September 16, 2020, 12:32pm UTC](https://discourse.julialang.org/t/gabor-kernel/46380 "2020-09-16T12:32:07Z")

</div>

Hi, I’m trying to create and visualize a Gabor kernel. First I used Kernel.gabor from ImageFiltering.jl and it worked, I think (I still have to learn how to use it to convolve with an image, but okay). gabor = Kernel.…

---

## [Reuse gurobi license](https://discourse.julialang.org/t/reuse-gurobi-license/46680)

<div class="topic-metadata">

**Author:** [@Ken\_Lin](https://discourse.julialang.org/u/Ken_Lin)\
**Replies:** 1\
**Last updated:** [September 16, 2020, 3:30am UTC](https://discourse.julialang.org/t/reuse-gurobi-license/46680 "2020-09-16T03:30:38Z")

</div>

I would like my code to reuse a single gurobi license instead of one per model. The following works for me: const GRB\_ENV = Gurobi.Env() m1 = Model(solver=GurobiSolver(GRB\_ENV)) m2 = Model(solver=GurobiSolver(GRB\_ENV))…

---

## [TCN Temporal Convolutional Networks in Julia?](https://discourse.julialang.org/t/tcn-temporal-convolutional-networks-in-julia/46188)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 4\
**Last updated:** [September 15, 2020, 5:01pm UTC](https://discourse.julialang.org/t/tcn-temporal-convolutional-networks-in-julia/46188 "2020-09-15T17:01:30Z")

</div>

TCN’s are hyped to be the best new approach in ML forecasting of Financial Time Series since LSTM, and have been claimed to be superior in performance and more efficient to compute. Has anyone managed to implement TCN’…

---

## [ANN: Knet 1.4.0: accelerating CuArrays](https://discourse.julialang.org/t/ann-knet-1-4-0-accelerating-cuarrays/45206)

<div class="topic-metadata">

**Author:** [@denizyuret](https://discourse.julialang.org/u/denizyuret)\
**Replies:** 26\
**Last updated:** [September 15, 2020, 4:15pm UTC](https://discourse.julialang.org/t/ann-knet-1-4-0-accelerating-cuarrays/45206 "2020-09-15T16:15:57Z")

</div>

I just released Knet 1.4.0, a major refactoring of the code (lots of submodules) for future improvements without any current API effects (hopefully). My first goal for this release was to fully support CuArrays without …

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

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