# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?page=250

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

**Page:** 251

---

## [CSR matrices in CUDA.jl](https://discourse.julialang.org/t/csr-matrices-in-cuda-jl/87388)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 8:41pm UTC](https://discourse.julialang.org/t/csr-matrices-in-cuda-jl/87388 "2022-09-21T20:41:41Z")

</div>

I can create CSC matrices on the GPU, e.g. via cu(sprand(10,10,0.1)). How do I create CSR matrices? How do I convert a CSC into a CSR matrix on the CPU or GPU? I want to use csreigvsi, which requires CSR storage structu…

---

## [Pathfinding and update\_vel!](https://discourse.julialang.org/t/pathfinding-and-update-vel/87471)

<div class="topic-metadata">

**Author:** [@InesP](https://discourse.julialang.org/u/InesP)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 6:37pm UTC](https://discourse.julialang.org/t/pathfinding-and-update-vel/87471 "2022-09-21T18:37:45Z")

</div>

Hey, I started using Agents.jl recently, and I have a question regarding using pathfinding and update\_vel! together. I’m trying to use Agents to model crowd dynamics in emergency situations. Right now, I’m using the AS…

---

## [How do I fit TGARCH-X model using ARCHModels.jl](https://discourse.julialang.org/t/how-do-i-fit-tgarch-x-model-using-archmodels-jl/87558)

<div class="topic-metadata">

**Author:** [@ultratrader](https://discourse.julialang.org/u/ultratrader)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 12:48pm UTC](https://discourse.julialang.org/t/how-do-i-fit-tgarch-x-model-using-archmodels-jl/87558 "2022-09-21T12:48:00Z")

</div>

How do I fit a GARCH model with leverage effect as well as additional explanatory variables using ARCHModels.jl library? I can’t find any documentation about this in: https://s-broda.github.io/ARCHModels.jl/stable/

---

## [Smoothing empirical CDFs](https://discourse.julialang.org/t/smoothing-empirical-cdfs/87544)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 6\
**Last updated:** [September 21, 2022, 12:20pm UTC](https://discourse.julialang.org/t/smoothing-empirical-cdfs/87544 "2022-09-21T12:20:51Z")

</div>

I have 5 empirical CDFs coming from a model. I’d like to average them and plot that average against the empirical CDF of the data. The issue I’m facing is that the points of support of those 5 CDFs are not the same, so I…

---

## [ODE parameter estimation using neural nets](https://discourse.julialang.org/t/ode-parameter-estimation-using-neural-nets/87458)

<div class="topic-metadata">

**Author:** [@RuoyuWang72](https://discourse.julialang.org/u/RuoyuWang72)\
**Replies:** 5\
**Last updated:** [September 21, 2022, 6:54am UTC](https://discourse.julialang.org/t/ode-parameter-estimation-using-neural-nets/87458 "2022-09-21T06:54:43Z")

</div>

I’m trying to add inequality constraints to my ODE parameter optimization problem. The example I followed was fluxdiffeq. I need p\[1\] + p\[2\] \<= 1 and p\[1\] and p\[2\] both also have to be positive. Is there any way I can ac…

---

## [PyPlot.jl reduce white space after tight\_layout()](https://discourse.julialang.org/t/pyplot-jl-reduce-white-space-after-tight-layout/86923)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 6:22am UTC](https://discourse.julialang.org/t/pyplot-jl-reduce-white-space-after-tight-layout/86923 "2022-09-21T06:22:08Z")

</div>

Can I reduce the amount of whitespace between subplots after the plot? Please note I need AA and BB to have linked X, Y axes and the same sizes with a shared colorbar, and that AA, BB and CC need to have a shared X axis…

---

## [Unable to add multiple plots to a single scene in Makie](https://discourse.julialang.org/t/unable-to-add-multiple-plots-to-a-single-scene-in-makie/87527)

<div class="topic-metadata">

**Author:** [@malton31](https://discourse.julialang.org/u/malton31)\
**Replies:** 4\
**Last updated:** [September 21, 2022, 1:16am UTC](https://discourse.julialang.org/t/unable-to-add-multiple-plots-to-a-single-scene-in-makie/87527 "2022-09-21T01:16:17Z")

</div>

I am new to Makie and Julia in VSCode and I am trying to plot two plots in one scene. My code is using Makie, GLMakie GLMakie.activate!() Makie.inline!(true) x = rand(100) y = rand(100) z = rand(100) scene = scatter…

---

## [Combine with regex column selector?](https://discourse.julialang.org/t/combine-with-regex-column-selector/87520)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 19\
**Last updated:** [September 20, 2022, 8:06pm UTC](https://discourse.julialang.org/t/combine-with-regex-column-selector/87520 "2022-09-20T20:06:07Z")

</div>

I’m a bit puzzled by this example, where I expected the same column selector to work both for select as for combine. For some reason I’m unable to use the regex selector with combine: julia\> using DataFrames, Statistics…

---

## [Preparing tutorials and books](https://discourse.julialang.org/t/preparing-tutorials-and-books/59298)

<div class="topic-metadata">

**Author:** [@vector](https://discourse.julialang.org/u/vector)\
**Replies:** 11\
**Last updated:** [September 20, 2022, 7:12pm UTC](https://discourse.julialang.org/t/preparing-tutorials-and-books/59298 "2022-09-20T19:12:45Z")

</div>

Hi. I am not sure whther this is the right category for posting my query. I cannot find the appropriate category. What software or platform do you use for writing Julia languge tutorials and books? Is it the good old …

---

## [How to combine two different colormaps into one](https://discourse.julialang.org/t/how-to-combine-two-different-colormaps-into-one/87529)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 7:40pm UTC](https://discourse.julialang.org/t/how-to-combine-two-different-colormaps-into-one/87529 "2022-09-20T19:40:45Z")

</div>

I come across the following colorbar somewhere and would like to implement something similar for my heatmap plot in CairoMakie: So suppose I want ColorSchemes.viridis from -5 to -2, and then ColorSchemes.Greys\_3 from …

---

## [Numeric string format for Makie plot?](https://discourse.julialang.org/t/numeric-string-format-for-makie-plot/87508)

<div class="topic-metadata">

**Author:** [@nvhoang.3110](https://discourse.julialang.org/u/nvhoang.3110)\
**Replies:** 5\
**Last updated:** [September 20, 2022, 5:10pm UTC](https://discourse.julialang.org/t/numeric-string-format-for-makie-plot/87508 "2022-09-20T17:10:44Z")

</div>

Hello everyone! Sorry if my question is too basic for some people. Basically I’m trying to define the numeric string format for my Makie plot, specifically for the axis. The numbers on the y-axis that I want to display h…

---

## [Custom CUDA kernel for nontrivial sum calculations](https://discourse.julialang.org/t/custom-cuda-kernel-for-nontrivial-sum-calculations/87466)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 11:11am UTC](https://discourse.julialang.org/t/custom-cuda-kernel-for-nontrivial-sum-calculations/87466 "2022-09-20T11:11:49Z")

</div>

Suppose I want to calculate the following sum: C\_{nm}=\\sum\_i A\_{ni}B\_{im} (in reality, something more complicated). The corresponding code could be function cpu\_add!(C, A, B) @. C = 0 for i in axes(A,1) …

---

## [Make lines in legend longer](https://discourse.julialang.org/t/make-lines-in-legend-longer/87479)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 10:30am UTC](https://discourse.julialang.org/t/make-lines-in-legend-longer/87479 "2022-09-20T10:30:21Z")

</div>

I am trying to create a separate common legend for a grid of plots, however the length of the lines in the legend appears too short. What keyword argument modifies it?

---

## [How to partilly instantiate parameters of a reaction network in Catalyst (or ModelingToolkit ?)](https://discourse.julialang.org/t/how-to-partilly-instantiate-parameters-of-a-reaction-network-in-catalyst-or-modelingtoolkit/87427)

<div class="topic-metadata">

**Author:** [@Cedric\_Lh](https://discourse.julialang.org/u/Cedric_Lh)\
**Replies:** 4\
**Last updated:** [September 20, 2022, 10:11am UTC](https://discourse.julialang.org/t/how-to-partilly-instantiate-parameters-of-a-reaction-network-in-catalyst-or-modelingtoolkit/87427 "2022-09-20T10:11:39Z")

</div>

Hi! Is there a simple way, in Catalyst.jl, to instantiate some of the parameters of a reaction system ? Suppose, I have this simple network: rn1 = @reaction\_network begin a, X --\> ∅ b, Y --\> X end a b so, param…

---

## [Getting Attributes for Makie Axis and Lines](https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 7:57am UTC](https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500 "2022-09-20T07:57:37Z")

</div>

There are many attributes of axes and plots that one might want to be able to inspect and change. I used to be able to find a list of these possibilities with Makie by doing the following. fig, axis, lineplot = lines(1:…

---

## [GPU-Kernel Profiling](https://discourse.julialang.org/t/gpu-kernel-profiling/87468)

<div class="topic-metadata">

**Author:** [@Julien\_A](https://discourse.julialang.org/u/Julien_A)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 6:47am UTC](https://discourse.julialang.org/t/gpu-kernel-profiling/87468 "2022-09-20T06:47:10Z")

</div>

Hello, i’m currently profiling a Julia deep learning project, mainly executed on the GPU. Using nvprof i get following profiling result: ==7880== Profiling result: Type Time(%) Time Calls Avg…

---

## [Load file on workers after they start](https://discourse.julialang.org/t/load-file-on-workers-after-they-start/87502)

<div class="topic-metadata">

**Author:** [@Amit.Rotem](https://discourse.julialang.org/u/Amit.Rotem)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 5:41am UTC](https://discourse.julialang.org/t/load-file-on-workers-after-they-start/87502 "2022-09-20T05:41:03Z")

</div>

Is it possible to load a jl file on a worker as they start? The -L flag does not seems to work. using Distributed open("worker\_startup.jl", "w") do io print(io, """ using Distributed id = Distribute…

---

## [Parallel bzip2 ang gzip: pbzip2 and pigz](https://discourse.julialang.org/t/parallel-bzip2-ang-gzip-pbzip2-and-pigz/87096)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 11\
**Last updated:** [September 20, 2022, 3:35am UTC](https://discourse.julialang.org/t/parallel-bzip2-ang-gzip-pbzip2-and-pigz/87096 "2022-09-20T03:35:22Z")

</div>

Do JuMP’s write\_to\_file and read\_from\_file use pbzip2 and pigz, parallel implementations of bzip2 and gzip, when writing or reading models stored in .bz2 and .gz compressed files? https://jump.dev/JuMP.jl/stable/referen…

---

## [ERROR: cannot document the following expression: using PATHSolver](https://discourse.julialang.org/t/error-cannot-document-the-following-expression-using-pathsolver/87496)

<div class="topic-metadata">

**Author:** [@Muhammad\_Nadeem](https://discourse.julialang.org/u/Muhammad_Nadeem)\
**Replies:** 10\
**Last updated:** [September 19, 2022, 10:50pm UTC](https://discourse.julialang.org/t/error-cannot-document-the-following-expression-using-pathsolver/87496 "2022-09-19T22:50:59Z")

</div>

Hello all, I am new to Julia, I am trying to run a simple optimization problem using PathSolver. I have installed the PathSolver, but it is giving me this error ERROR: cannot document the following expression: using P…

---

## [Modia doc page fail](https://discourse.julialang.org/t/modia-doc-page-fail/87489)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 4\
**Last updated:** [September 19, 2022, 7:58pm UTC](https://discourse.julialang.org/t/modia-doc-page-fail/87489 "2022-09-19T19:58:29Z")

</div>

Hi all, I found the Modia.jl documentation page can not be opened, is this a temporary problem or it is no longer available? Thank you in advance!

---

## [Getting attribute error: "Unknown property math\_fontfamily" from Plots](https://discourse.julialang.org/t/getting-attribute-error-unknown-property-math-fontfamily-from-plots/87486)

<div class="topic-metadata">

**Author:** [@Grace\_Chuan](https://discourse.julialang.org/u/Grace_Chuan)\
**Replies:** 4\
**Last updated:** [September 19, 2022, 7:23pm UTC](https://discourse.julialang.org/t/getting-attribute-error-unknown-property-math-fontfamily-from-plots/87486 "2022-09-19T19:23:44Z")

</div>

Hi everyone, I am trying to plot 3d graphics using Plots in jupyter notebook but everytime I try, I always get the error of unknown property math\_fontfamily. I posted a screenshot to show what I mean. Plots work for my …

---

## [Network Not Updating, Flux Julia](https://discourse.julialang.org/t/network-not-updating-flux-julia/87350)

<div class="topic-metadata">

**Author:** [@Nishant\_Mohanty](https://discourse.julialang.org/u/Nishant_Mohanty)\
**Replies:** 6\
**Last updated:** [September 19, 2022, 7:19pm UTC](https://discourse.julialang.org/t/network-not-updating-flux-julia/87350 "2022-09-19T19:19:35Z")

</div>

Hello people. I am trying to implement an actor critic network using Flux. However for some reason my network is not being updated. Here is a sample from the code. state\_dim1 = 14 output\_dim = 1 function actor\_model(sta…

---

## [Why isn't JuMP.register named register!](https://discourse.julialang.org/t/why-isnt-jump-register-named-register/87456)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 3\
**Last updated:** [September 19, 2022, 5:57am UTC](https://discourse.julialang.org/t/why-isnt-jump-register-named-register/87456 "2022-09-19T05:57:17Z")

</div>

register modifies its argument model, so the function would normally end in !. Why isn’t this function named register!?

---

## [Tabular MDP/Q-learning solver: Reward Matrix R(s, a, s') vs. R(s, a)](https://discourse.julialang.org/t/tabular-mdp-q-learning-solver-reward-matrix-r-s-a-s-vs-r-s-a/87457)

<div class="topic-metadata">

**Author:** [@Richard\_Wright](https://discourse.julialang.org/u/Richard_Wright)\
**Replies:** 0\
**Last updated:** [September 19, 2022, 4:52am UTC](https://discourse.julialang.org/t/tabular-mdp-q-learning-solver-reward-matrix-r-s-a-s-vs-r-s-a/87457 "2022-09-19T04:52:51Z")

</div>

Hello Folks, I am using the POMDP package along with the TabularTDLearning package In the first part of the problem I worked out a 3D transition matrix T(s’, a, s) and a 2D reward matrix R(s, a). Then formulated it as …

---

## [Add columns to DataFrame](https://discourse.julialang.org/t/add-columns-to-dataframe/49305)

<div class="topic-metadata">

**Author:** [@Smith](https://discourse.julialang.org/u/Smith)\
**Replies:** 5\
**Last updated:** [September 19, 2022, 4:47am UTC](https://discourse.julialang.org/t/add-columns-to-dataframe/49305 "2022-09-19T04:47:41Z")

</div>

I want to add columns to a dataframe iteratively in a loop and assign them a name. The code below seems to add one column to the dataframe containing value of p at the last iteration and name of the column appears as col…

---

## [Broadcast question](https://discourse.julialang.org/t/broadcast-question/87210)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [September 19, 2022, 3:09am UTC](https://discourse.julialang.org/t/broadcast-question/87210 "2022-09-19T03:09:04Z")

</div>

I got this off CUDA.jl…/test/texture.jl (altered a bit) Tex = @pipe rand(Float32,10) |\> CuTextureArray |\> CuTexture(\_, interpolation=CUDA.LinearInterpolation()) Idx = rand(Float32,10) .+1 |\> CuArray …

---

## [Univariate feature selection](https://discourse.julialang.org/t/univariate-feature-selection/87414)

<div class="topic-metadata">

**Author:** [@lucasmsoares96](https://discourse.julialang.org/u/lucasmsoares96)\
**Replies:** 1\
**Last updated:** [September 18, 2022, 9:07pm UTC](https://discourse.julialang.org/t/univariate-feature-selection/87414 "2022-09-18T21:07:37Z")

</div>

I’m having trouble finding a feature selection using Univariate feature selection in Julia. In scikit-learn this is possible as follows: from sklearn.datasets import load\_iris from sklearn.feature\_selection import Selec…

---

## [How to count the number of categories present in a column of a DataFrame](https://discourse.julialang.org/t/how-to-count-the-number-of-categories-present-in-a-column-of-a-dataframe/33244)

<div class="topic-metadata">

**Author:** [@philc](https://discourse.julialang.org/u/philc)\
**Replies:** 8\
**Last updated:** [September 18, 2022, 4:01pm UTC](https://discourse.julialang.org/t/how-to-count-the-number-of-categories-present-in-a-column-of-a-dataframe/33244 "2022-09-18T16:01:18Z")

</div>

Hello, In a dataframe with columns :A, :B, :C where :B contains categorical data, I would like to count the number of categories present in the different subdataframes obtained through groupby(df,:A), and finally gettin…

---

## [How to draw a directed graph of transition matrix](https://discourse.julialang.org/t/how-to-draw-a-directed-graph-of-transition-matrix/87399)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [September 18, 2022, 9:59am UTC](https://discourse.julialang.org/t/how-to-draw-a-directed-graph-of-transition-matrix/87399 "2022-09-18T09:59:41Z")

</div>

Hi all, I would like to draw a network to visualize a transition matrix. I was wondering if there is a package somewhere that automatically generates a directed graph from a transition matrix. Here is an example of what…

---

## [How to concisely define a recursive constraint？](https://discourse.julialang.org/t/how-to-concisely-define-a-recursive-constraint/87411)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [September 18, 2022, 1:55am UTC](https://discourse.julialang.org/t/how-to-concisely-define-a-recursive-constraint/87411 "2022-09-18T01:55:31Z")

</div>

How to concisely define a recursive constraint with JuMP, for example: x\_{t}-x\_{t-1}\\geqslant 1\\quad\\forall t = 1,\\cdots,T, where x\_0=0 but I don’t want to define an extra variable for it. In another words, I want to …

[Previous page](https://discourse.julialang.org/c/domain/10.md?page=249)

[Next page](https://discourse.julialang.org/c/domain/10.md?page=251)
