# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1973

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

**Page:** 1974

---

## [Batch Training with TensorFlow.jl](https://discourse.julialang.org/t/batch-training-with-tensorflow-jl/25575)

<div class="topic-metadata">

**Author:** [@oli](https://discourse.julialang.org/u/oli)\
**Replies:** 0\
**Last updated:** [June 23, 2019, 4:21pm UTC](https://discourse.julialang.org/t/batch-training-with-tensorflow-jl/25575 "2019-06-23T16:21:54Z")

</div>

Hi, I have an existing DNN project that works in Python, but I want to transition towards Julia. I’m having problems when it comes to using batches for training. Since my project is quite large, I will simply summarize …

---

## [DrWatson - the perfect sidekick to your scientific inquiries!](https://discourse.julialang.org/t/drwatson-the-perfect-sidekick-to-your-scientific-inquiries/23241)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 35\
**Last updated:** [June 23, 2019, 3:22pm UTC](https://discourse.julialang.org/t/drwatson-the-perfect-sidekick-to-your-scientific-inquiries/23241 "2019-06-23T15:22:47Z")

</div>

Dear All, I am very happy to announce the first beta version of our new package, called DrWatson: Motivation DrWatson is the result of some scientists being “fed up” with the hardship of handling scientific projec…

---

## [Adding more lapack wrappers to base julia](https://discourse.julialang.org/t/adding-more-lapack-wrappers-to-base-julia/25490)

<div class="topic-metadata">

**Author:** [@gasagna](https://discourse.julialang.org/u/gasagna)\
**Replies:** 1\
**Last updated:** [June 23, 2019, 12:08pm UTC](https://discourse.julialang.org/t/adding-more-lapack-wrappers-to-base-julia/25490 "2019-06-23T12:08:27Z")

</div>

I find myself in need of few additional LAPACK routines that are not currently wrapped in base Julia. What is the policy for adding new wrappers, should I make a PR?

---

## [JuMP 0.19 create constraints iteratively](https://discourse.julialang.org/t/jump-0-19-create-constraints-iteratively/25525)

<div class="topic-metadata">

**Author:** [@plapplop](https://discourse.julialang.org/u/plapplop)\
**Replies:** 2\
**Last updated:** [June 23, 2019, 10:18am UTC](https://discourse.julialang.org/t/jump-0-19-create-constraints-iteratively/25525 "2019-06-23T10:18:36Z")

</div>

I’m new to JuMP and I’m trying to model a simple problem: using JuMP, Gurobi months = 1:12 n\_months = length(months) demands = \[30, 15, 15, 25, 33, 40, 45, 45, 26, 14, 25, 30\] cap = 20 model = Model(with\_optimizer(Gur…

---

## [Mutually recursive type](https://discourse.julialang.org/t/mutually-recursive-type/25536)

<div class="topic-metadata">

**Author:** [@Freddy\_Chua](https://discourse.julialang.org/u/Freddy_Chua)\
**Replies:** 14\
**Last updated:** [June 23, 2019, 4:05am UTC](https://discourse.julialang.org/t/mutually-recursive-type/25536 "2019-06-23T04:05:07Z")

</div>

struct A b::B end struct B a::A end how to do this?

---

## [How do I push a value to all processes?](https://discourse.julialang.org/t/how-do-i-push-a-value-to-all-processes/25552)

<div class="topic-metadata">

**Author:** [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Replies:** 4\
**Last updated:** [June 23, 2019, 3:24am UTC](https://discourse.julialang.org/t/how-do-i-push-a-value-to-all-processes/25552 "2019-06-23T03:24:03Z")

</div>

First what I’m trying to do: using Distributed addprocs(1) target = string(@\_\_DIR\_\_, "/dir2/d2.jl") @everywhere include(target) With a directory structure like: /dir1 m1.jl /dir 2 d2.jl The above code is in m…

---

## [Multiline Regex](https://discourse.julialang.org/t/multiline-regex/25477)

<div class="topic-metadata">

**Author:** [@Amval](https://discourse.julialang.org/u/Amval)\
**Replies:** 2\
**Last updated:** [June 22, 2019, 3:25pm UTC](https://discourse.julialang.org/t/multiline-regex/25477 "2019-06-22T15:25:40Z")

</div>

Hello all, I am trying to split a long regex into different lines. I am aware that string macros can be called with triple quotes. However this introduces a newline at the end. Any way of avoiding this?

---

## [Questions about getting started with parallel computing](https://discourse.julialang.org/t/questions-about-getting-started-with-parallel-computing/25341)

<div class="topic-metadata">

**Author:** [@FujiwaraTakumiEH](https://discourse.julialang.org/u/FujiwaraTakumiEH)\
**Replies:** 18\
**Last updated:** [June 22, 2019, 2:01pm UTC](https://discourse.julialang.org/t/questions-about-getting-started-with-parallel-computing/25341 "2019-06-22T14:01:03Z")

</div>

Background: I have already written a program with julia. In order to pursue speed, I now want to solve this problem with parallel computing. OpenMP C++: I know that when I used C++ before, I used OpenMP to speed up my p…

---

## [Issues with incomplete parameterized types](https://discourse.julialang.org/t/issues-with-incomplete-parameterized-types/25542)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 1\
**Last updated:** [June 22, 2019, 8:02am UTC](https://discourse.julialang.org/t/issues-with-incomplete-parameterized-types/25542 "2019-06-22T08:02:39Z")

</div>

I thought I would build up a data structure with intermediate values I needed for a computation, to which I would later add the final results and return the whole thing. I’ve attempted to add type information, but some …

---

## [Semver and possible downside for Julia packages](https://discourse.julialang.org/t/semver-and-possible-downside-for-julia-packages/25531)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 3\
**Last updated:** [June 22, 2019, 5:03am UTC](https://discourse.julialang.org/t/semver-and-possible-downside-for-julia-packages/25531 "2019-06-22T05:03:52Z")

</div>

I do see at semver, which Julia follows, including the package manager (and thus all packages?): Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible API changes, MINOR ver…

---

## [Parsing String to Dates.CompoundPeriod](https://discourse.julialang.org/t/parsing-string-to-dates-compoundperiod/25484)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 11\
**Last updated:** [June 22, 2019, 4:32am UTC](https://discourse.julialang.org/t/parsing-string-to-dates-compoundperiod/25484 "2019-06-22T04:32:45Z")

</div>

Hello, I have Strings representing duration like "0.123" (in seconds, with millisecond resolution), "1:2.123" (minute:second.millisecond), "1:2:3.456" (hour:minute:second.millisecond) I wonder if some functions to pars…

---

## [How to use \`getproperty\`/\`setproperty!\`?](https://discourse.julialang.org/t/how-to-use-getproperty-setproperty/16033)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 6\
**Last updated:** [June 22, 2019, 3:00am UTC](https://discourse.julialang.org/t/how-to-use-getproperty-setproperty/16033 "2019-06-22T03:00:47Z")

</div>

The recommended way to implement getproperty(value, name::Symbol) is by making as many branches as required to check what name is? This seems inefficient. Or is the compiler able to eliminate the branching when it sees a…

---

## [Best practice for broadcastable callables](https://discourse.julialang.org/t/best-practice-for-broadcastable-callables/21000)

<div class="topic-metadata">

**Author:** [@tkf](https://discourse.julialang.org/u/tkf)\
**Replies:** 4\
**Last updated:** [June 22, 2019, 2:55am UTC](https://discourse.julialang.org/t/best-practice-for-broadcastable-callables/21000 "2019-06-22T02:55:22Z")

</div>

I wonder what is the best practice for callables that are broadcastable for input and its parameters. Here is an example: struct Scale{T} a::T end struct Shift{T} a::T end (f::Scale)(x) = f.a \* x (f::Shift)(x…

---

## [Problem with broadcasting, flatten, and type-stability](https://discourse.julialang.org/t/problem-with-broadcasting-flatten-and-type-stability/25539)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 1\
**Last updated:** [June 22, 2019, 2:32am UTC](https://discourse.julialang.org/t/problem-with-broadcasting-flatten-and-type-stability/25539 "2019-06-22T02:32:37Z")

</div>

I’m writing a custom AbstractArray implementation which supports broadcasting. This implementation makes use of Broadcast.flatten, but I’m finding that this introduces type-instabilities once expressions go beyond a few …

---

## [How do I use Cbc with JuMP 0.19?](https://discourse.julialang.org/t/how-do-i-use-cbc-with-jump-0-19/25502)

<div class="topic-metadata">

**Author:** [@dburch](https://discourse.julialang.org/u/dburch)\
**Replies:** 1\
**Last updated:** [June 22, 2019, 2:24am UTC](https://discourse.julialang.org/t/how-do-i-use-cbc-with-jump-0-19/25502 "2019-06-22T02:24:14Z")

</div>

How do I use Cbc with JuMP 0.19? The new syntax is throwing me off. All of the documentation I can find is using the old syntax. Old Syntax model = Model(solver=CbcSolver()) I know that GLPK with new syntax is like th…

---

## [MonteCarloProblem Error](https://discourse.julialang.org/t/montecarloproblem-error/25538)

<div class="topic-metadata">

**Author:** [@LGa](https://discourse.julialang.org/u/LGa)\
**Replies:** 3\
**Last updated:** [June 21, 2019, 11:57pm UTC](https://discourse.julialang.org/t/montecarloproblem-error/25538 "2019-06-21T23:57:38Z")

</div>

Hello, I am following the instructions from the DifferentialEquations.jl package (http://docs.juliadiffeq.org/latest/features/noise\_process.html#Direct-Simulation-of-the-Noise-Process-1) to Monte Carlo simulate paths of…

---

## [Julia with C++ (C++20 and modules) vs. e.g. Python and pybind11](https://discourse.julialang.org/t/julia-with-c-c-20-and-modules-vs-e-g-python-and-pybind11/25526)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 3\
**Last updated:** [June 21, 2019, 9:37pm UTC](https://discourse.julialang.org/t/julia-with-c-c-20-and-modules-vs-e-g-python-and-pybind11/25526 "2019-06-21T21:37:47Z")

</div>

Just curious, has anyone used/compared the “excellent” pybind11 (that supports at least C++17, not sure with C++20) and Julia with Cxx.jl and/or Cppwrap.jl? Note, Pybind11 has a benchmark section in their extensive docs…

---

## [Tuples of closures](https://discourse.julialang.org/t/tuples-of-closures/25506)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 5\
**Last updated:** [June 21, 2019, 7:38pm UTC](https://discourse.julialang.org/t/tuples-of-closures/25506 "2019-06-21T19:38:14Z")

</div>

Hi all—I have a use case where I have a collection of functions that I want to include in a struct. I know the number of functions at compile time, but they will be made into closures with run-time data. It has been sugg…

---

## [Behavior of \`CartesianIndex\` for \`Bool\`](https://discourse.julialang.org/t/behavior-of-cartesianindex-for-bool/25532)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 0\
**Last updated:** [June 21, 2019, 5:52pm UTC](https://discourse.julialang.org/t/behavior-of-cartesianindex-for-bool/25532 "2019-06-21T17:52:47Z")

</div>

The documentation of CartesianIndex states: In particular, A\[I\] is equivalent to A\[i,j,k...\] Currently it does not hold if i etc. is Bool. For example: julia\> x = rand(2,2) 2×2 Array{Float64,2}: 0.937975 0.7768 0…

---

## [Flux.jl vanilla ANN loss goes to NaN with mini batch](https://discourse.julialang.org/t/flux-jl-vanilla-ann-loss-goes-to-nan-with-mini-batch/25511)

<div class="topic-metadata">

**Author:** [@jchen975](https://discourse.julialang.org/u/jchen975)\
**Replies:** 0\
**Last updated:** [June 21, 2019, 4:14am UTC](https://discourse.julialang.org/t/flux-jl-vanilla-ann-loss-goes-to-nan-with-mini-batch/25511 "2019-06-21T04:14:00Z")

</div>

I’m building a vanilla NN with 1 or 2 hidden layers for a regression problem that’s basically as follows: I take N sets of known values (x\_1, y\_1), ..., (x\_k, y\_k) as input to an approximation solver that returns N sets…

---

## [Error solving multiple JuMP models in parallel](https://discourse.julialang.org/t/error-solving-multiple-jump-models-in-parallel/3047)

<div class="topic-metadata">

**Author:** [@FabsOliveira](https://discourse.julialang.org/u/FabsOliveira)\
**Replies:** 6\
**Last updated:** [April 9, 2017, 9:53am UTC](https://discourse.julialang.org/t/error-solving-multiple-jump-models-in-parallel/3047 "2017-04-09T09:53:44Z")

</div>

Hi everyone, I’m struggling with an error that I can’t really understand. I am trying to solve several JuMP.Models in parallel as a step of a decomposition algorithm that can exploit a specific structure of my model. I…

---

## [How to use Gurobi Attributes in Julia](https://discourse.julialang.org/t/how-to-use-gurobi-attributes-in-julia/25529)

<div class="topic-metadata">

**Author:** [@vikas9087](https://discourse.julialang.org/u/vikas9087)\
**Replies:** 0\
**Last updated:** [June 21, 2019, 3:36pm UTC](https://discourse.julialang.org/t/how-to-use-gurobi-attributes-in-julia/25529 "2019-06-21T15:36:51Z")

</div>

Hi, I am trying to use one Gurobi attribute (UnbdRay, UnbdRay) but I am unable to find the macro to be used in Gurobi. Below is an example I am trying to use SP=Model(solver=GurobiSolver(InfUnbdInfo=1)) status= unbou…

---

## [Advice about refactoring LinearFractional.jl for JuMP 0.19 and Julia 0.7](https://discourse.julialang.org/t/advice-about-refactoring-linearfractional-jl-for-jump-0-19-and-julia-0-7/12966)

<div class="topic-metadata">

**Author:** [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Replies:** 7\
**Last updated:** [June 21, 2019, 3:07pm UTC](https://discourse.julialang.org/t/advice-about-refactoring-linearfractional-jl-for-jump-0-19-and-julia-0-7/12966 "2019-06-21T15:07:29Z")

</div>

A short while ago, I shared GitHub - nexteraanalytics/LinearFractional.jl: Linear fractional programming with Julia and JuMP for solving linear fractional programs with JuMP. I’m now looking into a big refactor to take …

---

## [Givens matrix for an integer vector](https://discourse.julialang.org/t/givens-matrix-for-an-integer-vector/25520)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 6\
**Last updated:** [June 21, 2019, 2:23pm UTC](https://discourse.julialang.org/t/givens-matrix-for-an-integer-vector/25520 "2019-06-21T14:23:48Z")

</div>

As a newcomer to Julia I am still struggling with various type-related issues. One of them is this: using LinearAlgebra julia\> x = \[3,4\] 2-element Array{Int64,1}: 3 4 julia\> G,r = givens(x,1,2) ERROR: MethodError: no…

---

## [StatsPlots corrplot is not executing](https://discourse.julialang.org/t/statsplots-corrplot-is-not-executing/25524)

<div class="topic-metadata">

**Author:** [@GdMacmillan](https://discourse.julialang.org/u/GdMacmillan)\
**Replies:** 2\
**Last updated:** [June 21, 2019, 1:53pm UTC](https://discourse.julialang.org/t/statsplots-corrplot-is-not-executing/25524 "2019-06-21T13:53:12Z")

</div>

Interesting problem here. Perhaps this would be best written as an issue in the StatsPlots git repo so I’m here to find out I am running my work in a Jupyter notebook (v4.4), Julia 1.1.1 MacBook Pro (Retina, 13-inch, E…

---

## [Using Julia to set env variables](https://discourse.julialang.org/t/using-julia-to-set-env-variables/25492)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 6\
**Last updated:** [June 21, 2019, 1:06pm UTC](https://discourse.julialang.org/t/using-julia-to-set-env-variables/25492 "2019-06-21T13:06:24Z")

</div>

I’d like to set environment variables in the enclosing shell from a Julia script. I’d have thought I could do run(\`export TESTVAR=varname\`) but I got the following very unexpected error ERROR: IOError: could not spaw…

---

## [\[ANN\] QuantizedArrays.jl](https://discourse.julialang.org/t/ann-quantizedarrays-jl/25521)

<div class="topic-metadata">

**Author:** [@zgornel](https://discourse.julialang.org/u/zgornel)\
**Replies:** 0\
**Last updated:** [June 21, 2019, 11:38am UTC](https://discourse.julialang.org/t/ann-quantizedarrays-jl/25521 "2019-06-21T11:38:35Z")

</div>

QuantizedArrays.jl is a simple Array-like interface for array quantization/compression. It can useful for product quantization implementations or for reducing (with quality loss) the sizes of large arrays. Suggestions an…

---

## [Row wise median (or sum or mean) with missings](https://discourse.julialang.org/t/row-wise-median-or-sum-or-mean-with-missings/25514)

<div class="topic-metadata">

**Author:** [@abeburnett](https://discourse.julialang.org/u/abeburnett)\
**Replies:** 3\
**Last updated:** [June 21, 2019, 10:31am UTC](https://discourse.julialang.org/t/row-wise-median-or-sum-or-mean-with-missings/25514 "2019-06-21T10:31:51Z")

</div>

Hi there, I’ve been beating my head on this for a bit, and I’m coming up empty. Based on another answer I found here (and after realizing there’s no R equivalent of the apply functions or dplyr rowwise functions), I tri…

---

## [What is the future of WebIO, web-based GUIs?](https://discourse.julialang.org/t/what-is-the-future-of-webio-web-based-guis/9607)

<div class="topic-metadata">

**Author:** [@jwikmark](https://discourse.julialang.org/u/jwikmark)\
**Replies:** 1\
**Last updated:** [March 9, 2018, 10:00pm UTC](https://discourse.julialang.org/t/what-is-the-future-of-webio-web-based-guis/9607 "2018-03-09T22:00:43Z")

</div>

We’re building a small application that uses WebIO and I’m curious about the future of this package and its relatives (InteractNext etc), as well as the general state of tools to build web-based GUI applications in Julia…

---

## [Cumulative min / cumulative max](https://discourse.julialang.org/t/cumulative-min-cumulative-max/25516)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 7\
**Last updated:** [June 21, 2019, 10:22am UTC](https://discourse.julialang.org/t/cumulative-min-cumulative-max/25516 "2019-06-21T10:22:50Z")

</div>

Hello, Python Pandas have an interesting function named cumulative min (and its counterpart cumulative max) See python - Rolling min of a Pandas Series without window / cumulative minimum / expanding min - Stack Overfl…

[Previous page](https://discourse.julialang.org/latest.md?page=1972)

[Next page](https://discourse.julialang.org/latest.md?page=1974)
