# Specific Domains

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

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

**Page:** 205

---

## [Modifying Flux source code for GPU](https://discourse.julialang.org/t/modifying-flux-source-code-for-gpu/96360)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 8:57pm UTC](https://discourse.julialang.org/t/modifying-flux-source-code-for-gpu/96360 "2023-03-27T20:57:54Z")

</div>

In Flux.jl, I wanted to modify the behavior of BatchNorm, so I changed the code here. The modified code was effective when it ran on CPU, but I realized that it was not effective on GPU. After some investigation, I fou…

---

## [Multiple-input operators with OperatorLearning.jl](https://discourse.julialang.org/t/multiple-input-operators-with-operatorlearning-jl/96678)

<div class="topic-metadata">

**Author:** [@kaido975](https://discourse.julialang.org/u/kaido975)\
**Replies:** 0\
**Last updated:** [March 27, 2023, 8:38pm UTC](https://discourse.julialang.org/t/multiple-input-operators-with-operatorlearning-jl/96678 "2023-03-27T20:38:06Z")

</div>

Is it possible to define a multiple-input operators (\[2202.06137\] MIONet: Learning multiple-input operators via tensor product) to construct a network of the form (branch1, branch2, branch3…, trunk) using OperatorLearnin…

---

## [How to specify variable with different indexes/bounds in JuMP](https://discourse.julialang.org/t/how-to-specify-variable-with-different-indexes-bounds-in-jump/96651)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 7:29pm UTC](https://discourse.julialang.org/t/how-to-specify-variable-with-different-indexes-bounds-in-jump/96651 "2023-03-27T19:29:55Z")

</div>

Hello, I would like to declare in JuMP a variable s whose bounds depends form its index, with some indexes fixed. The problems is that if I declare it twice I get an error that the variable already attached to the model…

---

## [GLM model from statistical rethinking video series](https://discourse.julialang.org/t/glm-model-from-statistical-rethinking-video-series/96666)

<div class="topic-metadata">

**Author:** [@arthings](https://discourse.julialang.org/u/arthings)\
**Replies:** 0\
**Last updated:** [March 27, 2023, 4:59pm UTC](https://discourse.julialang.org/t/glm-model-from-statistical-rethinking-video-series/96666 "2023-03-27T16:59:45Z")

</div>

Hello, i have an issue with the Turing code related to this model in the Statistical Rethinking video series. This code is not in the book so i didn’t find the solution in the good ressourcesTuringModels.jl or SR2TuringP…

---

## [Add data to a DataFrame](https://discourse.julialang.org/t/add-data-to-a-dataframe/96467)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 6\
**Last updated:** [March 27, 2023, 1:34pm UTC](https://discourse.julialang.org/t/add-data-to-a-dataframe/96467 "2023-03-27T13:34:58Z")

</div>

Dear All, Description of the problem: How can I add data to individual elements of a dataframe generated using a template? For example, based on the rowTemplate (see the example code) I create a Dataframe that I want to…

---

## [Help on model a problem/function to use with Optimization.jl](https://discourse.julialang.org/t/help-on-model-a-problem-function-to-use-with-optimization-jl/95942)

<div class="topic-metadata">

**Author:** [@rodolforbcoutinho](https://discourse.julialang.org/u/rodolforbcoutinho)\
**Replies:** 17\
**Last updated:** [March 27, 2023, 2:25am UTC](https://discourse.julialang.org/t/help-on-model-a-problem-function-to-use-with-optimization-jl/95942 "2023-03-27T02:25:55Z")

</div>

Hello to all. I’m trying to use Optimization.jl to solve a problem, but a I dont know how to define the problem in a way the package needs it. In my problem I have an Array of a Struct with several parameters and for ea…

---

## [PlotlyJS.jl animation](https://discourse.julialang.org/t/plotlyjs-jl-animation/70058)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 14\
**Last updated:** [March 26, 2023, 9:01pm UTC](https://discourse.julialang.org/t/plotlyjs-jl-animation/70058 "2023-03-26T21:01:56Z")

</div>

Are there any examples of animating plots in PlotlyJS.jl, in particular using multiple frames such as this Python example? I noticed a mention of using react!, but that has downsides (e.g. it resets the viewer orientati…

---

## [Textbox graph with NetworkLayout with labels cut off using GraphMakie](https://discourse.julialang.org/t/textbox-graph-with-networklayout-with-labels-cut-off-using-graphmakie/96566)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 3\
**Last updated:** [March 26, 2023, 7:02pm UTC](https://discourse.julialang.org/t/textbox-graph-with-networklayout-with-labels-cut-off-using-graphmakie/96566 "2023-03-26T19:02:38Z")

</div>

I am using a textbox graph with NetworkLayout. Using their layout algorithms it creates the positions based on the graph but when the labels are bigger than the points it cuts it of. What would be a good solution for com…

---

## [Problems fitting a simple Multinomial model in RxInfer](https://discourse.julialang.org/t/problems-fitting-a-simple-multinomial-model-in-rxinfer/95442)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 5\
**Last updated:** [March 26, 2023, 2:33pm UTC](https://discourse.julialang.org/t/problems-fitting-a-simple-multinomial-model-in-rxinfer/95442 "2023-03-26T14:33:10Z")

</div>

Hello everyone, I’m experimenting with the awesome package RxInfer but apparently I’m having some difficulties in understanding some basic principles. I tried to adapt one of the first simple examples of RxInfer to bui…

---

## [MethodError: no method matching gemm!, It looks like |\>gpu cannot manage arrays resulting from view and reshape](https://discourse.julialang.org/t/methoderror-no-method-matching-gemm-it-looks-like-gpu-cannot-manage-arrays-resulting-from-view-and-reshape/96621)

<div class="topic-metadata">

**Author:** [@Andrea\_Deflorio](https://discourse.julialang.org/u/Andrea_Deflorio)\
**Replies:** 0\
**Last updated:** [March 26, 2023, 8:47am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-gemm-it-looks-like-gpu-cannot-manage-arrays-resulting-from-view-and-reshape/96621 "2023-03-26T08:47:55Z")

</div>

My julia version: 1.9 beta4 It looks like |\>gpu cannot manage arrays resulting from view and reshape. cu() can it! When I run the code down, I get this error: Exception has occurred: CompositeException TaskFailedExce…

---

## [Sentence Embeddings using Transformers.jl](https://discourse.julialang.org/t/sentence-embeddings-using-transformers-jl/96611)

<div class="topic-metadata">

**Author:** [@NAS](https://discourse.julialang.org/u/NAS)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 10:06pm UTC](https://discourse.julialang.org/t/sentence-embeddings-using-transformers-jl/96611 "2023-03-25T22:06:42Z")

</div>

I’m trying to do sentence embeddings using a huggingface model similar to python example here: sentence-transformers/all-MiniLM-L6-v2 · Hugging Face. So far I have this using Transformers.HuggingFace using Transformers…

---

## [Combining or reusing subplot elements](https://discourse.julialang.org/t/combining-or-reusing-subplot-elements/96606)

<div class="topic-metadata">

**Author:** [@iabraham](https://discourse.julialang.org/u/iabraham)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 8:05pm UTC](https://discourse.julialang.org/t/combining-or-reusing-subplot-elements/96606 "2023-03-25T20:05:53Z")

</div>

How can I extract and reuse/combine subplots in Julia? Consider: pp = plot(0:0.01:2, \[sin.(0:0.01:2), cos.(0:0.01:2)\], layout=(1,2)); gg = plot(0:0.01:2, \[sin.(0:0.01:2).^2, cos.(0:0.01:2).^2\], layout=(1,2)); Both pp …

---

## [Lifting function in Query.jl](https://discourse.julialang.org/t/lifting-function-in-query-jl/96599)

<div class="topic-metadata">

**Author:** [@myrddin89](https://discourse.julialang.org/u/myrddin89)\
**Replies:** 2\
**Last updated:** [March 25, 2023, 6:17pm UTC](https://discourse.julialang.org/t/lifting-function-in-query-jl/96599 "2023-03-25T18:17:19Z")

</div>

I’m having troubles using the lifting functionality in Query.jl and DataValues.jl with dot syntax. If I simply try the following using DataValues a = DataValue(0.4) a .\* 2 I get the this error: ERROR: MethodError: no…

---

## [MiniFB Error (SetProcessDpiAwernessContext): Access was denied](https://discourse.julialang.org/t/minifb-error-setprocessdpiawernesscontext-access-was-denied/96598)

<div class="topic-metadata">

**Author:** [@Melancholic\_Octopus](https://discourse.julialang.org/u/Melancholic_Octopus)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 2:12pm UTC](https://discourse.julialang.org/t/minifb-error-setprocessdpiawernesscontext-access-was-denied/96598 "2023-03-25T14:12:22Z")

</div>

I am trying to use MiniFB.jl on Windows, and i am getting this error Error (SetProcessDpiAwernessContext): Access was denied I tried to find what is wrong, but i was not much succesful. The window still opens, and you…

---

## [LoadError: CUDA runtime not found](https://discourse.julialang.org/t/loaderror-cuda-runtime-not-found/96131)

<div class="topic-metadata">

**Author:** [@robvold](https://discourse.julialang.org/u/robvold)\
**Replies:** 11\
**Last updated:** [March 25, 2023, 1:57pm UTC](https://discourse.julialang.org/t/loaderror-cuda-runtime-not-found/96131 "2023-03-25T13:57:15Z")

</div>

I am trying to implement a couple of algorithms in CUDA using Julia and the CUDA.jl package. I started with Julia a couple of days ago, so the error may be easy to solve, but I haven’t figured out a solution yet. The Er…

---

## [Tips on (sort of) creating a new Problem type in SciML, derived from an existing type](https://discourse.julialang.org/t/tips-on-sort-of-creating-a-new-problem-type-in-sciml-derived-from-an-existing-type/95749)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 3\
**Last updated:** [March 25, 2023, 11:25am UTC](https://discourse.julialang.org/t/tips-on-sort-of-creating-a-new-problem-type-in-sciml-derived-from-an-existing-type/95749 "2023-03-25T11:25:37Z")

</div>

Hi everyone, I’m trying to define what is in effect a new Problem in SciML, but what actually is a special case of an existing Problem. As I can’t derive from an instantiated type, I’m making a new type with an instance…

---

## [Best practices](https://discourse.julialang.org/t/best-practices/85138)

<div class="topic-metadata">

**Author:** [@Dario-Rosa85](https://discourse.julialang.org/u/Dario-Rosa85)\
**Replies:** 24\
**Last updated:** [March 25, 2023, 9:31am UTC](https://discourse.julialang.org/t/best-practices/85138 "2023-03-25T09:31:28Z")

</div>

I am running a code which is diagonalizing very large matrices, hence I need to reach the best possible performance. when scanning a vector I was using the following syntax for i in 1:length(vec) which works fine. How…

---

## [All solutions of linear program](https://discourse.julialang.org/t/all-solutions-of-linear-program/96562)

<div class="topic-metadata">

**Author:** [@ahmad88](https://discourse.julialang.org/u/ahmad88)\
**Replies:** 6\
**Last updated:** [March 25, 2023, 4:54am UTC](https://discourse.julialang.org/t/all-solutions-of-linear-program/96562 "2023-03-25T04:54:53Z")

</div>

if I have the following model VC\_model2 = direct\_model(Gurobi.Optimizer()) @variable(VC\_model2, y\[i=initial:n\], binary=true) @variable(VC\_model2, x\[i=initial:n\], binary=true) ########################################…

---

## [Zygote vs. Forward Diff with Optim](https://discourse.julialang.org/t/zygote-vs-forward-diff-with-optim/96565)

<div class="topic-metadata">

**Author:** [@gnicolosi](https://discourse.julialang.org/u/gnicolosi)\
**Replies:** 4\
**Last updated:** [March 24, 2023, 11:39pm UTC](https://discourse.julialang.org/t/zygote-vs-forward-diff-with-optim/96565 "2023-03-24T23:39:13Z")

</div>

Hi all, I am solving an optimization problem using an Augmented Lagrangian (AL) of a constrained parameterized problem. I have about 400 parameters and the AL spits out a scalar which is to be minimized. I have already …

---

## [Passing vectors of data into MTK/MoL problem as parameter](https://discourse.julialang.org/t/passing-vectors-of-data-into-mtk-mol-problem-as-parameter/96578)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 2\
**Last updated:** [March 24, 2023, 11:05pm UTC](https://discourse.julialang.org/t/passing-vectors-of-data-into-mtk-mol-problem-as-parameter/96578 "2023-03-24T23:05:26Z")

</div>

I have been able to use vectors of data that I’ve passed through DataInterpolations as inputs/boundary conditions to a ModelingToolkit/MethodOfLines problem, but I would like to use the data vectors as MTK parameters to …

---

## [Add a constraint to a model iteratively](https://discourse.julialang.org/t/add-a-constraint-to-a-model-iteratively/96558)

<div class="topic-metadata">

**Author:** [@ahmad88](https://discourse.julialang.org/u/ahmad88)\
**Replies:** 2\
**Last updated:** [March 24, 2023, 9:28pm UTC](https://discourse.julialang.org/t/add-a-constraint-to-a-model-iteratively/96558 "2023-03-24T21:28:32Z")

</div>

I have a model as follows VC\_model2 = direct\_model(Gurobi.Optimizer()) @variable(VC\_model2, y\[i=initial:n\], binary=true) @variable(VC\_model2, x\[i=initial:n\], binary=true) ###############################################…

---

## [Inconsistent solutions from JuMP vs InfiniteOpt for discretized optimal control](https://discourse.julialang.org/t/inconsistent-solutions-from-jump-vs-infiniteopt-for-discretized-optimal-control/96539)

<div class="topic-metadata">

**Author:** [@mbanchio](https://discourse.julialang.org/u/mbanchio)\
**Replies:** 4\
**Last updated:** [March 24, 2023, 5:53pm UTC](https://discourse.julialang.org/t/inconsistent-solutions-from-jump-vs-infiniteopt-for-discretized-optimal-control/96539 "2023-03-24T17:53:48Z")

</div>

Hello everyone, I have been playing around with JuMP recently to understand the structure of an optimal control problem. For clarity, the problem is the following. I want to find the function x(c,\\theta) such that \\fora…

---

## [VARX Model Estimation and Analysis](https://discourse.julialang.org/t/varx-model-estimation-and-analysis/96503)

<div class="topic-metadata">

**Author:** [@DionysisPap](https://discourse.julialang.org/u/DionysisPap)\
**Replies:** 8\
**Last updated:** [March 24, 2023, 4:51pm UTC](https://discourse.julialang.org/t/varx-model-estimation-and-analysis/96503 "2023-03-24T16:51:38Z")

</div>

As a beginner, i would like to ask if Julia provides any package (or function) for black box polynomial model estimation (preferably VARX model) and anaylis.

---

## [Translating tensorflow to Flux and SimpleChains and not getting the same results](https://discourse.julialang.org/t/translating-tensorflow-to-flux-and-simplechains-and-not-getting-the-same-results/96134)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 6\
**Last updated:** [March 24, 2023, 3:08pm UTC](https://discourse.julialang.org/t/translating-tensorflow-to-flux-and-simplechains-and-not-getting-the-same-results/96134 "2023-03-24T15:08:56Z")

</div>

For the past few days, I started working on an ML project. I looked at Flux.jl and SimpleChains.jl for doing pure Julia Deep Learning and TensorFlow, but I could not make them agree! The data: let say the model tries t…

---

## [Attractors.basins\_fractions throws "ArgumentError: range must be non-empty"](https://discourse.julialang.org/t/attractors-basins-fractions-throws-argumenterror-range-must-be-non-empty/96531)

<div class="topic-metadata">

**Author:** [@cjoshliu](https://discourse.julialang.org/u/cjoshliu)\
**Replies:** 3\
**Last updated:** [March 24, 2023, 10:06am UTC](https://discourse.julialang.org/t/attractors-basins-fractions-throws-argumenterror-range-must-be-non-empty/96531 "2023-03-24T10:06:02Z")

</div>

Hi, I’m trying to find basin fractions of an s-species (s-dimensional) generalized Lotka-Volterra model using DynamicalSystems. My model is d\_t\\vec{u}=\\vec{\\lambda}+\\vec{r}\\cdot\\vec{u}\\cdot (1-\\hat{\\alpha}\\vec{u}) wher…

---

## [Interaction of GeoJSON with GeoInterface methods](https://discourse.julialang.org/t/interaction-of-geojson-with-geointerface-methods/96535)

<div class="topic-metadata">

**Author:** [@Barget](https://discourse.julialang.org/u/Barget)\
**Replies:** 6\
**Last updated:** [March 24, 2023, 9:25am UTC](https://discourse.julialang.org/t/interaction-of-geojson-with-geointerface-methods/96535 "2023-03-24T09:25:35Z")

</div>

Hi, I’d like to read a .geojson file and perform some geometrical operations on the geometries (union, contains, etc.). Using LibGEOS or ArchGDAL works fine, but i’ve got some troubles with GeoJSON (maybe I’m missing s…

---

## [Accessing agent- and model-data in combination](https://discourse.julialang.org/t/accessing-agent-and-model-data-in-combination/96517)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 2\
**Last updated:** [March 24, 2023, 7:46am UTC](https://discourse.julialang.org/t/accessing-agent-and-model-data-in-combination/96517 "2023-03-24T07:46:47Z")

</div>

Hi. I want to use abm\_exploration to display data that requires access to both agents and model, something like this: function demo() model = initialise\_model() params = Dict( :reaction\_norm =\> 0:0.01:1, ) plotkwa…

---

## [Adding a play button to a PlotlyJS plot](https://discourse.julialang.org/t/adding-a-play-button-to-a-plotlyjs-plot/95383)

<div class="topic-metadata">

**Author:** [@phiG](https://discourse.julialang.org/u/phiG)\
**Replies:** 10\
**Last updated:** [March 24, 2023, 2:05am UTC](https://discourse.julialang.org/t/adding-a-play-button-to-a-plotlyjs-plot/95383 "2023-03-24T02:05:22Z")

</div>

Hi everyone, since I got a perfect answer last time on how to add sliders to a Plotly Plot in the first place, this time I would be delighted if someone could help me edit the code below such that there is a Play Button…

---

## [Interpolation problem](https://discourse.julialang.org/t/interpolation-problem/96530)

<div class="topic-metadata">

**Author:** [@PaulN](https://discourse.julialang.org/u/PaulN)\
**Replies:** 2\
**Last updated:** [March 23, 2023, 11:47pm UTC](https://discourse.julialang.org/t/interpolation-problem/96530 "2023-03-23T23:47:27Z")

</div>

I am learning how to use DifferentialEquations.jl, and wrote a simple first piece to code to simulate an undamped SHO. When I solve for the motion and plot the x and v curves using DifferentialEquations.jl, I get a beaut…

---

## [Makie heatmap legend](https://discourse.julialang.org/t/makie-heatmap-legend/96494)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 3\
**Last updated:** [March 23, 2023, 10:54pm UTC](https://discourse.julialang.org/t/makie-heatmap-legend/96494 "2023-03-23T22:54:52Z")

</div>

I have a heatmap and I want a legend explaining the values of the colors. let ps = 0:.01:1 ns=1:1000:5\_000\_000 f = Figure() ax = Axis(f\[1,1\]; xgridvisible=true, ygridvisible=true, xminorgridvisible=true, ymi…

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

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