# Specific Domains

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

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

**Page:** 263

---

## [Siamese/Twin network in Flux (working with two image inputs)](https://discourse.julialang.org/t/siamese-twin-network-in-flux-working-with-two-image-inputs/84991)

<div class="topic-metadata">

**Author:** [@LetsGrillBananas](https://discourse.julialang.org/u/LetsGrillBananas)\
**Replies:** 2\
**Last updated:** [July 29, 2022, 6:19pm UTC](https://discourse.julialang.org/t/siamese-twin-network-in-flux-working-with-two-image-inputs/84991 "2022-07-29T18:19:36Z")

</div>

I’m trying Flux for the first time, so I’m porting a project I did in PyTorch earlier this year over to Flux. Essentially, the project is to classify plant leaves as healthy or diseased. I already have a baseline transfe…

---

## [When plotting Optimization.jl callbacks with Plots.jl, use just one figure in VS Code plots paned](https://discourse.julialang.org/t/when-plotting-optimization-jl-callbacks-with-plots-jl-use-just-one-figure-in-vs-code-plots-paned/84948)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 2:28pm UTC](https://discourse.julialang.org/t/when-plotting-optimization-jl-callbacks-with-plots-jl-use-just-one-figure-in-vs-code-plots-paned/84948 "2022-07-29T14:28:16Z")

</div>

In the callback function below cb = function(θ,l,pred) … how can I have only the current prediction appear on a plot with each iteration to illustrate the progress of fitting? I have tried putting fig = plot() inside th…

---

## [Growing cell population using callback](https://discourse.julialang.org/t/growing-cell-population-using-callback/84970)

<div class="topic-metadata">

**Author:** [@hbooth](https://discourse.julialang.org/u/hbooth)\
**Replies:** 10\
**Last updated:** [July 29, 2022, 2:11pm UTC](https://discourse.julialang.org/t/growing-cell-population-using-callback/84970 "2022-07-29T14:11:33Z")

</div>

Hi everyone, I am building a model of a growing cell population. I want to make use of callback to evaluate the ‘division’ event, similar to the example in this tutorial - Event Handling and Callback Functions · Differe…

---

## [Plotting MCMCChains with Makie](https://discourse.julialang.org/t/plotting-mcmcchains-with-makie/84860)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 7\
**Last updated:** [July 29, 2022, 1:13pm UTC](https://discourse.julialang.org/t/plotting-mcmcchains-with-makie/84860 "2022-07-29T13:13:06Z")

</div>

It is currently trivially simple to plot the posterior likelihood functions from a MCMC chain with StatsPlots. However, it was quite easy to make a function that allows the same automatic plotting with Makie: Setupjulia…

---

## [What is the proper way to handle a discontinuity in Differential Equations?](https://discourse.julialang.org/t/what-is-the-proper-way-to-handle-a-discontinuity-in-differential-equations/84963)

<div class="topic-metadata">

**Author:** [@Ge0rges](https://discourse.julialang.org/u/Ge0rges)\
**Replies:** 2\
**Last updated:** [July 29, 2022, 12:24pm UTC](https://discourse.julialang.org/t/what-is-the-proper-way-to-handle-a-discontinuity-in-differential-equations/84963 "2022-07-29T12:24:38Z")

</div>

Hello all, I have a system of two differential equations that I am able to solve using Rosenbrock23(). I now would like to model this system with one modification, where at time t I manually change the value of one of …

---

## [Makie - Keep GLMakie window on top of everything](https://discourse.julialang.org/t/makie-keep-glmakie-window-on-top-of-everything/72722)

<div class="topic-metadata">

**Author:** [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Replies:** 2\
**Last updated:** [July 29, 2022, 4:21am UTC](https://discourse.julialang.org/t/makie-keep-glmakie-window-on-top-of-everything/72722 "2022-07-29T04:21:02Z")

</div>

Is there a built-in way to ask GLMakie to keep the figure window on top of all the others? I know of external programs that can do it to any window, but it would be slightly more convenient for me if I could do it from …

---

## [Unbounded Numerical Integration, non-centered](https://discourse.julialang.org/t/unbounded-numerical-integration-non-centered/84947)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 1:43am UTC](https://discourse.julialang.org/t/unbounded-numerical-integration-non-centered/84947 "2022-07-29T01:43:31Z")

</div>

I’m interested in integrating f(x)\\phi(x) over the entire real line, where \\phi(x) is the Gaussian/Normal density function. Ordinarily the Gauss-Hermite method in FastGaussQuadrature would be good for this (with suitabl…

---

## [\[English\] \`train!\` or \`fit!\` for a ML API?](https://discourse.julialang.org/t/english-train-or-fit-for-a-ml-api/84899)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 11:13pm UTC](https://discourse.julialang.org/t/english-train-or-fit-for-a-ml-api/84899 "2022-07-28T23:13:24Z")

</div>

I am deeply undecided to name the step where parameters of a model are learned from data in the API of my ML library train!(model,X,\[Y\]) or fit!(model,X,\[Y\]). I would intuitively prefer the first, as make somehow explic…

---

## [Matrix Completion](https://discourse.julialang.org/t/matrix-completion/84879)

<div class="topic-metadata">

**Author:** [@Fadi\_Hamad](https://discourse.julialang.org/u/Fadi_Hamad)\
**Replies:** 4\
**Last updated:** [July 28, 2022, 2:01pm UTC](https://discourse.julialang.org/t/matrix-completion/84879 "2022-07-28T14:01:11Z")

</div>

Hello, I am trying to formulate (unconstrained form) the Matrix completion problem in JuMP. I am trying this formulation based on minimizing the square loss and the Frobenius norm, but this formulation always leads to …

---

## [Vscode plot save button png instead of svg?](https://discourse.julialang.org/t/vscode-plot-save-button-png-instead-of-svg/84914)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 1:02pm UTC](https://discourse.julialang.org/t/vscode-plot-save-button-png-instead-of-svg/84914 "2022-07-28T13:02:40Z")

</div>

I’m on vscode Version: 1.69.2 . I used to be able to save a plot in the plotting pane by clicking the save symbol and that gave me a .png file. now it seems i can only save svg. how can I change that back to saving .png …

---

## [ODE solver slowed down by interpolation](https://discourse.julialang.org/t/ode-solver-slowed-down-by-interpolation/84913)

<div class="topic-metadata">

**Author:** [@ap2013](https://discourse.julialang.org/u/ap2013)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 12:04pm UTC](https://discourse.julialang.org/t/ode-solver-slowed-down-by-interpolation/84913 "2022-07-28T12:04:18Z")

</div>

I have an ODE system defined through modelingtoolkit. The system is formed of multiple ODESystems and simplified with system = structural\_simplify(all). One of the ODESystem is defined by the following function functio…

---

## [Save and load the model generated by surrogates.jl](https://discourse.julialang.org/t/save-and-load-the-model-generated-by-surrogates-jl/83302)

<div class="topic-metadata">

**Author:** [@Jack\_Tang](https://discourse.julialang.org/u/Jack_Tang)\
**Replies:** 4\
**Last updated:** [July 28, 2022, 10:31am UTC](https://discourse.julialang.org/t/save-and-load-the-model-generated-by-surrogates-jl/83302 "2022-07-28T10:31:58Z")

</div>

Hello Community, How can I save and load the model generated by surrogates.jl?

---

## [Number of points in Pareto front](https://discourse.julialang.org/t/number-of-points-in-pareto-front/84741)

<div class="topic-metadata">

**Author:** [@chenr86](https://discourse.julialang.org/u/chenr86)\
**Replies:** 5\
**Last updated:** [July 28, 2022, 8:56am UTC](https://discourse.julialang.org/t/number-of-points-in-pareto-front/84741 "2022-07-28T08:56:11Z")

</div>

Hello, I’m using MultiJuMP.jl to solve a MOO problem with 2 objectives, f1 and f2. Here, f1 is a continuous function to minimize, f2 is an integer function to maximize. When I post model.pointsperdim = 10, I got a pare…

---

## [Overfitting when building kriging surrogate model](https://discourse.julialang.org/t/overfitting-when-building-kriging-surrogate-model/84857)

<div class="topic-metadata">

**Author:** [@chenr86](https://discourse.julialang.org/u/chenr86)\
**Replies:** 6\
**Last updated:** [July 28, 2022, 7:37am UTC](https://discourse.julialang.org/t/overfitting-when-building-kriging-surrogate-model/84857 "2022-07-28T07:37:26Z")

</div>

Hello, I’m using Surrogates.jl to build a surrogate model based on data in a CSV file. There are 24 input parameters and 1 output variables in my data. I have 500 samples. 80% samples are used for training set and other…

---

## [Easier Solver Callback for JuMP.lj + Gurobi](https://discourse.julialang.org/t/easier-solver-callback-for-jump-lj-gurobi/84889)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 5:45am UTC](https://discourse.julialang.org/t/easier-solver-callback-for-jump-lj-gurobi/84889 "2022-07-28T05:45:49Z")

</div>

I would like to write a callback function that does something similar to this: (gurobipy) but it seems much more complicated to do this in JuMP :frowning\_face:. see and here \[ANN\] Upcoming breaking changes to CPLE…

---

## [Update on future developement of BVP solvers?](https://discourse.julialang.org/t/update-on-future-developement-of-bvp-solvers/84839)

<div class="topic-metadata">

**Author:** [@MButler](https://discourse.julialang.org/u/MButler)\
**Replies:** 6\
**Last updated:** [July 27, 2022, 11:47pm UTC](https://discourse.julialang.org/t/update-on-future-developement-of-bvp-solvers/84839 "2022-07-27T23:47:06Z")

</div>

I’m currently doing research in gravitational physics and the problems I’m working with often end up as BVPs that are very stiff and sensitive to the initial conditions. It seems this is still a weak point for Julia’s BV…

---

## [LibSerialPort problem on MacBook Pro](https://discourse.julialang.org/t/libserialport-problem-on-macbook-pro/81364)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 8\
**Last updated:** [July 27, 2022, 5:20pm UTC](https://discourse.julialang.org/t/libserialport-problem-on-macbook-pro/81364 "2022-07-27T17:20:28Z")

</div>

I’m writing bytes to a serial port using LibSerialPort.jl. My code works on a Linux machine but not on a MacBook Pro. There are no errors, but the desired effect (a connected Arduino Nano Every lights up an LED on an LED…

---

## [Parameter optimization of MethodOfLines PDE](https://discourse.julialang.org/t/parameter-optimization-of-methodoflines-pde/84647)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 10\
**Last updated:** [July 27, 2022, 2:35pm UTC](https://discourse.julialang.org/t/parameter-optimization-of-methodoflines-pde/84647 "2022-07-27T14:35:07Z")

</div>

I’d like to optimize parameters in the MOL example shown here with an RMSD cost function to minimize. Following a WIP example here to build the OptimizationFunction, I have the following, but the results come back predi…

---

## [Flux: can't get recurrent sequence-to-one model to train](https://discourse.julialang.org/t/flux-cant-get-recurrent-sequence-to-one-model-to-train/57459)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 8\
**Last updated:** [July 27, 2022, 1:18pm UTC](https://discourse.julialang.org/t/flux-cant-get-recurrent-sequence-to-one-model-to-train/57459 "2022-07-27T13:18:08Z")

</div>

I am attempting to create a simple recurrent model that takes data generated by a parameterized data generating process as the input, and the parameters of the DGP as the output. The goal is to learn the parameters, give…

---

## [Bar and line charts combined in PlotlyJS](https://discourse.julialang.org/t/bar-and-line-charts-combined-in-plotlyjs/84870)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 2\
**Last updated:** [July 27, 2022, 12:55pm UTC](https://discourse.julialang.org/t/bar-and-line-charts-combined-in-plotlyjs/84870 "2022-07-27T12:55:40Z")

</div>

Hello! I’m trying to plot a bar chart and a line chart combined in the same double y-axis plot, using PlotlyJS, by running the following code: fixed\_cost = \[791.57;773.16;765.58;758.15;750.86;743.71;736.69;729.81;723.0…

---

## [Iterative proportional fitting package?](https://discourse.julialang.org/t/iterative-proportional-fitting-package/60580)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 4\
**Last updated:** [July 27, 2022, 10:49am UTC](https://discourse.julialang.org/t/iterative-proportional-fitting-package/60580 "2022-07-27T10:49:25Z")

</div>

Is there any package that implements the iterative proportional fitting procedure?

---

## [Iterate fitting linear model and extract coefficients over grouped DataFrame](https://discourse.julialang.org/t/iterate-fitting-linear-model-and-extract-coefficients-over-grouped-dataframe/84814)

<div class="topic-metadata">

**Author:** [@guysutton](https://discourse.julialang.org/u/guysutton)\
**Replies:** 4\
**Last updated:** [July 27, 2022, 10:45am UTC](https://discourse.julialang.org/t/iterate-fitting-linear-model-and-extract-coefficients-over-grouped-dataframe/84814 "2022-07-27T10:45:44Z")

</div>

I am trying to iteratively fit many models (e.g. a linear model \[GLM.jl\] or mixed model \[MixedModels.jl\]) to a DataFrame, whereby a new model is fit to each level of a grouping column. For example: if I wanted to fit one…

---

## [Question on allowing user to specify the optimization sense](https://discourse.julialang.org/t/question-on-allowing-user-to-specify-the-optimization-sense/84836)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 2\
**Last updated:** [July 27, 2022, 2:53am UTC](https://discourse.julialang.org/t/question-on-allowing-user-to-specify-the-optimization-sense/84836 "2022-07-27T02:53:49Z")

</div>

I have a small package in which I solve an optimization model. The sense of the objective function is to be specified by the user. Now, I export MAX\_SENSE and MIN\_SENSE for the user to use them. A small example: module …

---

## [How to get the variable names of a PDESystem if using a symbolic array](https://discourse.julialang.org/t/how-to-get-the-variable-names-of-a-pdesystem-if-using-a-symbolic-array/84776)

<div class="topic-metadata">

**Author:** [@hpieper14](https://discourse.julialang.org/u/hpieper14)\
**Replies:** 7\
**Last updated:** [July 26, 2022, 8:40pm UTC](https://discourse.julialang.org/t/how-to-get-the-variable-names-of-a-pdesystem-if-using-a-symbolic-array/84776 "2022-07-26T20:40:36Z")

</div>

I’m having a hard time understanding exactly how a PDESystem with independent array variables differs from a PDESystem initialized with other independent variables. For example, suppose I have the following two PDESystem…

---

## [ApproxFun and Burgers' equation](https://discourse.julialang.org/t/approxfun-and-burgers-equation/84660)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 6\
**Last updated:** [July 26, 2022, 8:22pm UTC](https://discourse.julialang.org/t/approxfun-and-burgers-equation/84660 "2022-07-26T20:22:11Z")

</div>

I am trying to use ApproxFun to solve Burgers’ equation, u\_t + uu\_x = \\mu u\_{xx}, on the interval -L \\leq x \\leq L with initial condition u(x, 0) = f(x) = 1/(1+x^2) and boundary conditions u(\\pm L, t) = 0. I was trying t…

---

## [Custom random sampling kernels](https://discourse.julialang.org/t/custom-random-sampling-kernels/57092)

<div class="topic-metadata">

**Author:** [@simsurace](https://discourse.julialang.org/u/simsurace)\
**Replies:** 16\
**Last updated:** [July 26, 2022, 6:51pm UTC](https://discourse.julialang.org/t/custom-random-sampling-kernels/57092 "2022-07-26T18:51:40Z")

</div>

I’m trying to write custom kernels for random sampling from various distributions. Most needed is a Binomial sampler that runs on the GPU. That functionality seems to be under-developed currently. As a first step I trie…

---

## [Dimension mismatch in Flux with NeuralODE](https://discourse.julialang.org/t/dimension-mismatch-in-flux-with-neuralode/84804)

<div class="topic-metadata">

**Author:** [@WillT](https://discourse.julialang.org/u/WillT)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 9:52am UTC](https://discourse.julialang.org/t/dimension-mismatch-in-flux-with-neuralode/84804 "2022-07-26T09:52:08Z")

</div>

In Flux I’m trying to chain together a NeuralODE and some other layers. When I evaluate the network and the a loss function, it works ok. But when I try to calculate the gradients of the loss w.r.t. the params there is a…

---

## [Strange Memory Allocations with DifferentialEquations](https://discourse.julialang.org/t/strange-memory-allocations-with-differentialequations/83909)

<div class="topic-metadata">

**Author:** [@7vn](https://discourse.julialang.org/u/7vn)\
**Replies:** 3\
**Last updated:** [July 26, 2022, 2:33am UTC](https://discourse.julialang.org/t/strange-memory-allocations-with-differentialequations/83909 "2022-07-26T02:33:58Z")

</div>

Hello, I’m observing very strange and large memory allocations while solving a standard ODE and evaluating it at given times. However, after the first benchmark, if (and only if!) I recompile the integrated function the…

---

## [Call for contribution to a Julia version of HEP Software Foundation Tutorials](https://discourse.julialang.org/t/call-for-contribution-to-a-julia-version-of-hep-software-foundation-tutorials/84784)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 2:31am UTC](https://discourse.julialang.org/t/call-for-contribution-to-a-julia-version-of-hep-software-foundation-tutorials/84784 "2022-07-26T02:31:17Z")

</div>

The goal is to provide similar tutorials as listed at: HSF Software Training Center Currently we have covered the uproot tutorial (lacking detail commentary atm) I have started a repo with setup CI + Pluto static build…

---

## [How can I save surrogate model in Julia and use it in Python](https://discourse.julialang.org/t/how-can-i-save-surrogate-model-in-julia-and-use-it-in-python/84746)

<div class="topic-metadata">

**Author:** [@Jack\_Tang](https://discourse.julialang.org/u/Jack_Tang)\
**Replies:** 4\
**Last updated:** [July 26, 2022, 2:29am UTC](https://discourse.julialang.org/t/how-can-i-save-surrogate-model-in-julia-and-use-it-in-python/84746 "2022-07-26T02:29:09Z")

</div>

Hello, In my project, I would like to save surrogate model in Julia and use it in Python. HDF5 is the best file format? If yes, How can I read the surrogate model and use it in Python? Thanks!

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

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