# Latest

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

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

**Page:** 1912

---

## [Logistic Regression Package](https://discourse.julialang.org/t/logistic-regression-package/29354)

<div class="topic-metadata">

**Author:** [@infinitylabs](https://discourse.julialang.org/u/infinitylabs)\
**Replies:** 5\
**Last updated:** [October 1, 2019, 10:45am UTC](https://discourse.julialang.org/t/logistic-regression-package/29354 "2019-10-01T10:45:58Z")

</div>

Hi, Has anybody released a package foe logistic and multinomial regressions? We are planning to release one soon. Couldnt find a direct package like that in sklearn. Has anyone come across any such packages?

---

## [Documenter.jl - Docs empty unless manually created? Old references to moved functions?](https://discourse.julialang.org/t/documenter-jl-docs-empty-unless-manually-created-old-references-to-moved-functions/29304)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 9\
**Last updated:** [October 1, 2019, 10:06am UTC](https://discourse.julialang.org/t/documenter-jl-docs-empty-unless-manually-created-old-references-to-moved-functions/29304 "2019-10-01T10:06:29Z")

</div>

When I build my docs, references to an older version of my package documentation persists? Functions that were documented and refactored to other files are being displayed. Despite the old docs being deleted each time I …

---

## [Return a specific type for anonymous functions](https://discourse.julialang.org/t/return-a-specific-type-for-anonymous-functions/29343)

<div class="topic-metadata">

**Author:** [@mrl001](https://discourse.julialang.org/u/mrl001)\
**Replies:** 2\
**Last updated:** [October 1, 2019, 8:36am UTC](https://discourse.julialang.org/t/return-a-specific-type-for-anonymous-functions/29343 "2019-10-01T08:36:19Z")

</div>

Hello, Im writing a function for add edge in a graph that takes a function as parameter, I’d like to ensure that function return a specified type E. How do I do it? code: function addedge!(G::DictGraph{V,E}, source::V…

---

## [PSA: Microbenchmarks remember branch history](https://discourse.julialang.org/t/psa-microbenchmarks-remember-branch-history/17436)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 36\
**Last updated:** [October 1, 2019, 8:08am UTC](https://discourse.julialang.org/t/psa-microbenchmarks-remember-branch-history/17436 "2019-10-01T08:08:13Z")

</div>

Something to keep in mind when running microbenchmarks: The sneaky CPU can remember astoundingly long branch history patterns. If you run @btime on somthing, then you generate a periodic branching pattern: The period len…

---

## [Automatic differentiation and \`abs()\` (or comparison operators in general) issues with JuMP/Ipopt](https://discourse.julialang.org/t/automatic-differentiation-and-abs-or-comparison-operators-in-general-issues-with-jump-ipopt/29333)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 4\
**Last updated:** [October 1, 2019, 7:13am UTC](https://discourse.julialang.org/t/automatic-differentiation-and-abs-or-comparison-operators-in-general-issues-with-jump-ipopt/29333 "2019-10-01T07:13:00Z")

</div>

I just scratched my head for a while because my super fast reconstruction algorithm suddenly took 100 times longer than usual after playing around with the quality function. Then I realised that the abs() function inside…

---

## [ANN: OffsetBuffers.jl - for streaming data processing](https://discourse.julialang.org/t/ann-offsetbuffers-jl-for-streaming-data-processing/29316)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 3\
**Last updated:** [October 1, 2019, 6:56am UTC](https://discourse.julialang.org/t/ann-offsetbuffers-jl-for-streaming-data-processing/29316 "2019-10-01T06:56:30Z")

</div>

https://github.com/sairus7/OffsetBuffers.jl Buffer counts items pushed to the end and uses counted value as index for last buffered items. It may be useful for stream processing, when you have long arrays / signals str…

---

## [Yellow 'end' symbol + no colors in Atom](https://discourse.julialang.org/t/yellow-end-symbol-no-colors-in-atom/29140)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 5\
**Last updated:** [October 1, 2019, 6:44am UTC](https://discourse.julialang.org/t/yellow-end-symbol-no-colors-in-atom/29140 "2019-10-01T06:44:14Z")

</div>

Hi, I have two problem, but they might be connected. When I use Julia in Atom, the symbols are no longer colored when the line becomes too long. Any idea why? Also, sometimes I break a line and all the ‘end’ symbols in…

---

## [Zygote debugging](https://discourse.julialang.org/t/zygote-debugging/28423)

<div class="topic-metadata">

**Author:** [@HenrikM](https://discourse.julialang.org/u/HenrikM)\
**Replies:** 6\
**Last updated:** [October 1, 2019, 6:23am UTC](https://discourse.julialang.org/t/zygote-debugging/28423 "2019-10-01T06:23:05Z")

</div>

How to debug Zygote? Currently, when running gradient(fun, ω) I get the following error message below. What does it mean? How should I read it? Line 9 below refers to one of my functions, but the error is probably not…

---

## [PkgBenchmark on project with unregistered dependency](https://discourse.julialang.org/t/pkgbenchmark-on-project-with-unregistered-dependency/29350)

<div class="topic-metadata">

**Author:** [@milesf](https://discourse.julialang.org/u/milesf)\
**Replies:** 3\
**Last updated:** [October 1, 2019, 5:35am UTC](https://discourse.julialang.org/t/pkgbenchmark-on-project-with-unregistered-dependency/29350 "2019-10-01T05:35:43Z")

</div>

I’m struggling to get PkgBenchmark working for packages that require an unregistered dependency. A simple demo of this issue is Example.jl, which depends on the newfeature branch of ExampleDep.jl. Example.jl has no iss…

---

## [Round() can anybody explain this behavior to me?](https://discourse.julialang.org/t/round-can-anybody-explain-this-behavior-to-me/29230)

<div class="topic-metadata">

**Author:** [@MatFi](https://discourse.julialang.org/u/MatFi)\
**Replies:** 18\
**Last updated:** [October 1, 2019, 5:37am UTC](https://discourse.julialang.org/t/round-can-anybody-explain-this-behavior-to-me/29230 "2019-10-01T05:37:03Z")

</div>

Just see (julia 1.2): julia\> round(1e24;digits=1) 9.999999999999998e23 julia\> round(1e24;sigdigits=1) 1.0e24 julia\> round(1e23;digits=1) 1.0e23 julia\> round(1e23;sigdigits=1) 1.0000000000000001e23 julia\> round(1e23;…

---

## [Available soon for new work](https://discourse.julialang.org/t/available-soon-for-new-work/29338)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 2\
**Last updated:** [October 1, 2019, 4:41am UTC](https://discourse.julialang.org/t/available-soon-for-new-work/29338 "2019-10-01T04:41:25Z")

</div>

Hello all, As some of you know, I work as an intstructor for Metis, a data science training company. I’m also the lead developer for Soss.jl, a Julia-based probabilistic programming language. Metis has been working for…

---

## [Interpolating along a single dimension of a multi dimensional array for particular points](https://discourse.julialang.org/t/interpolating-along-a-single-dimension-of-a-multi-dimensional-array-for-particular-points/29308)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 6\
**Last updated:** [September 30, 2019, 11:56pm UTC](https://discourse.julialang.org/t/interpolating-along-a-single-dimension-of-a-multi-dimensional-array-for-particular-points/29308 "2019-09-30T23:56:34Z")

</div>

I have some simple linear interpolation code in a package. It would be nice to support spline etc and not write that myself - but it has to be extremely fast and non-allocating at the point of use. It can take as long as…

---

## [Hacktoberfest 2019 is starting tomorrow!](https://discourse.julialang.org/t/hacktoberfest-2019-is-starting-tomorrow/29319)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 1\
**Last updated:** [September 30, 2019, 11:02pm UTC](https://discourse.julialang.org/t/hacktoberfest-2019-is-starting-tomorrow/29319 "2019-09-30T23:02:28Z")

</div>

Hello everyone! I am sure many people here are already familiar with Hacktoberfest, but here is a recap: It is an “online competition”, where it is free to attend. You “win the competition” simply by contributing 4 Pul…

---

## [\[ANN\] Juno-Toolbar-Plus](https://discourse.julialang.org/t/ann-juno-toolbar-plus/28779)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 2\
**Last updated:** [September 30, 2019, 10:23pm UTC](https://discourse.julialang.org/t/ann-juno-toolbar-plus/28779 "2019-09-30T22:23:16Z")

</div>

This is a simple Atom’s package that enhances Julia Client Toolbar by adding some useful buttons. Installation Files and Folders Open Folder - useful for opening and developing a project/package Select Julia worki…

---

## [Why making \`a\[range\] = b\[range\]\` seems to make unnecessary allocations?](https://discourse.julialang.org/t/why-making-a-range-b-range-seems-to-make-unnecessary-allocations/29325)

<div class="topic-metadata">

**Author:** [@pedrohnv](https://discourse.julialang.org/u/pedrohnv)\
**Replies:** 4\
**Last updated:** [September 30, 2019, 10:18pm UTC](https://discourse.julialang.org/t/why-making-a-range-b-range-seems-to-make-unnecessary-allocations/29325 "2019-09-30T22:18:33Z")

</div>

I was wondering why making a\[range\] = b\[range\] seems to make unnecessary allocations and if (why) that is intended. For example: function f!(a, b, n) a\[1:n, 1:n\] = b\[1:n, 1:n\] end function g!(a, b, n) copyto!(a…

---

## [Efficient (possibly preallocated) chain of Kronecker products](https://discourse.julialang.org/t/efficient-possibly-preallocated-chain-of-kronecker-products/29328)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [September 30, 2019, 8:10pm UTC](https://discourse.julialang.org/t/efficient-possibly-preallocated-chain-of-kronecker-products/29328 "2019-09-30T20:10:32Z")

</div>

I need to calculate something not unlike reduce(kron, As...) where As are 3–8 matrices. If it helps, I can preallocate for the output. Elements of As are dense, the length of As is known at compile time (unrolling is p…

---

## [Plots pyplot() export to pdf or eps (ERROR)](https://discourse.julialang.org/t/plots-pyplot-export-to-pdf-or-eps-error/29332)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 2\
**Last updated:** [September 30, 2019, 5:20pm UTC](https://discourse.julialang.org/t/plots-pyplot-export-to-pdf-or-eps-error/29332 "2019-09-30T17:20:10Z")

</div>

Hi, I am running a simple code and trying to save a plot created with pyplot() in pdf or eps. μs = log.(xs) σs = rand(length(xs)) plot(xs,μs,grid=false) When I try save("filename.pdf") the file is not saved. Only png …

---

## [Julia Bloggers](https://discourse.julialang.org/t/julia-bloggers/29279)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 6\
**Last updated:** [September 30, 2019, 5:17pm UTC](https://discourse.julialang.org/t/julia-bloggers/29279 "2019-09-30T17:17:51Z")

</div>

I’m getting a strange “Account Suspended” page when I access Julia Bloggers. Does anyone know who the maintainer is for the site?

---

## [\`UndefVarError: x not defined\` but x is in the model](https://discourse.julialang.org/t/undefvarerror-x-not-defined-but-x-is-in-the-model/29326)

<div class="topic-metadata">

**Author:** [@Ariel\_Cruz\_Cruz](https://discourse.julialang.org/u/Ariel_Cruz_Cruz)\
**Replies:** 5\
**Last updated:** [September 30, 2019, 4:20pm UTC](https://discourse.julialang.org/t/undefvarerror-x-not-defined-but-x-is-in-the-model/29326 "2019-09-30T16:20:58Z")

</div>

Hi, I’m having the next problem: I want to solve a given optimization problem using a JuMP model. In the algorithm that I am using I need to pass the model itself to another function having just the variables and I will…

---

## [Optimal way to make a line and column permutation copy of an array](https://discourse.julialang.org/t/optimal-way-to-make-a-line-and-column-permutation-copy-of-an-array/29331)

<div class="topic-metadata">

**Author:** [@pedrohnv](https://discourse.julialang.org/u/pedrohnv)\
**Replies:** 0\
**Last updated:** [September 30, 2019, 3:26pm UTC](https://discourse.julialang.org/t/optimal-way-to-make-a-line-and-column-permutation-copy-of-an-array/29331 "2019-09-30T15:26:24Z")

</div>

How can I optimize the following functions that copy a line-, column- or both- permutation (pl, pc, pcl, respectively) of a src array into a dest array? In particular, can the temp array be avoided in pcl? using Benchm…

---

## [Eliminate NaN tuples from dictionary](https://discourse.julialang.org/t/eliminate-nan-tuples-from-dictionary/29329)

<div class="topic-metadata">

**Author:** [@Rasoul](https://discourse.julialang.org/u/Rasoul)\
**Replies:** 1\
**Last updated:** [September 30, 2019, 3:35pm UTC](https://discourse.julialang.org/t/eliminate-nan-tuples-from-dictionary/29329 "2019-09-30T15:35:22Z")

</div>

Hi All, I want to eliminate (NaN, NaN) tuple form the blow dictionary. Can you please let me know how I can do this. Thanks in advance! intersection\[(6, 9)\]=Any\[(1.0, -0.295491), (0.866025, -0.34202), (0.866025, -0.342…

---

## [In matlab, we calculate inv(A)\* B by A\\B. How about Julia? note that A&B are two large sparse matrices](https://discourse.julialang.org/t/in-matlab-we-calculate-inv-a-b-by-a-b-how-about-julia-note-that-a-b-are-two-large-sparse-matrices/29322)

<div class="topic-metadata">

**Author:** [@NITISH\_KUMAR](https://discourse.julialang.org/u/NITISH_KUMAR)\
**Replies:** 9\
**Last updated:** [September 30, 2019, 3:19pm UTC](https://discourse.julialang.org/t/in-matlab-we-calculate-inv-a-b-by-a-b-how-about-julia-note-that-a-b-are-two-large-sparse-matrices/29322 "2019-09-30T15:19:08Z")

</div>

Does anybody have experience with the calculation of inv(A)\*B in Julia, where A and B are large sparse matrices? When I used zz = A\\B in Julia. It shows the following error in Julia MethodError: no method matching ldiv…

---

## [BLAS.gemm on views of matrices does not work](https://discourse.julialang.org/t/blas-gemm-on-views-of-matrices-does-not-work/29306)

<div class="topic-metadata">

**Author:** [@MaximilianJHuber](https://discourse.julialang.org/u/MaximilianJHuber)\
**Replies:** 2\
**Last updated:** [September 30, 2019, 2:49pm UTC](https://discourse.julialang.org/t/blas-gemm-on-views-of-matrices-does-not-work/29306 "2019-09-30T14:49:45Z")

</div>

I am not sure if this should work: using LinearAlgebra BLAS.gemm('N', 'N', @view(zeros(10,10)\[:, 1:3:10\]), @view(zeros(10,20)\[1:3:10,:\])) It fails with ERROR: matrix does not have contiguous columns. However, so does B…

---

## [CuArray allocation issue: How often is it a problem?](https://discourse.julialang.org/t/cuarray-allocation-issue-how-often-is-it-a-problem/27508)

<div class="topic-metadata">

**Author:** [@haberdashPI](https://discourse.julialang.org/u/haberdashPI)\
**Replies:** 5\
**Last updated:** [September 30, 2019, 2:40pm UTC](https://discourse.julialang.org/t/cuarray-allocation-issue-how-often-is-it-a-problem/27508 "2019-09-30T14:40:28Z")

</div>

Hi there, I’m thinking about making use of Flux and CuArrays for a new project. However, I was a little troubled to learn about this issue. It’s hard to a get a sense from that thread how often this is coming up as a pr…

---

## [Polyaxon with Julia - anyone?](https://discourse.julialang.org/t/polyaxon-with-julia-anyone/29318)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [September 30, 2019, 11:46am UTC](https://discourse.julialang.org/t/polyaxon-with-julia-anyone/29318 "2019-09-30T11:46:11Z")

</div>

Is anyone using Polyaxon with Julia? I would appreciate hearing about your setup.

---

## [Problem with MySQL](https://discourse.julialang.org/t/problem-with-mysql/29313)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 2\
**Last updated:** [September 30, 2019, 11:17am UTC](https://discourse.julialang.org/t/problem-with-mysql/29313 "2019-09-30T11:17:04Z")

</div>

Dearests, I have a connect problem with MySQL.jl. I’m writing a module that do some custom queries to a local mysql database. It looks like: module PfamDatabaseTools global connection = MySQL.connect("127.0.0.1","myna…

---

## [Custom Array Performance Issues](https://discourse.julialang.org/t/custom-array-performance-issues/29191)

<div class="topic-metadata">

**Author:** [@stakaz](https://discourse.julialang.org/u/stakaz)\
**Replies:** 8\
**Last updated:** [September 30, 2019, 9:07am UTC](https://discourse.julialang.org/t/custom-array-performance-issues/29191 "2019-09-30T09:07:57Z")

</div>

Hello, I have the following example of a custom array and I do not know why there is a nearly factor 2 overhead in the performance for my custom array type MyArray using BenchmarkTools struct MyArray{T,N} \<: AbstractAr…

---

## [Usage of Correct Types in Array](https://discourse.julialang.org/t/usage-of-correct-types-in-array/29142)

<div class="topic-metadata">

**Author:** [@ZQ\_Li](https://discourse.julialang.org/u/ZQ_Li)\
**Replies:** 6\
**Last updated:** [September 30, 2019, 7:18am UTC](https://discourse.julialang.org/t/usage-of-correct-types-in-array/29142 "2019-09-30T07:18:34Z")

</div>

Hi, I want to write a function that can take matrix composing of both int and float and return if it is a upper triangle matrix or not: function isUpperTriangle(A::Array{Number, 2}, tol::Number=1e-3)::Bool for i in…

---

## [Specialization tips to shrink 45x performance gap when comparing structs](https://discourse.julialang.org/t/specialization-tips-to-shrink-45x-performance-gap-when-comparing-structs/29249)

<div class="topic-metadata">

**Author:** [@milesf](https://discourse.julialang.org/u/milesf)\
**Replies:** 7\
**Last updated:** [September 30, 2019, 6:24am UTC](https://discourse.julialang.org/t/specialization-tips-to-shrink-45x-performance-gap-when-comparing-structs/29249 "2019-09-30T06:24:37Z")

</div>

I’m seeking tips on how to improve performance of struct comparisons where the specific comparison rule is selected at runtime. I have a struct with n fields, and I’d like to sort by each field in either order. Perform…

---

## [How to evaluate MathProgBase functions of a JuMP model](https://discourse.julialang.org/t/how-to-evaluate-mathprogbase-functions-of-a-jump-model/29303)

<div class="topic-metadata">

**Author:** [@Mahbubar06](https://discourse.julialang.org/u/Mahbubar06)\
**Replies:** 2\
**Last updated:** [September 30, 2019, 5:04am UTC](https://discourse.julialang.org/t/how-to-evaluate-mathprogbase-functions-of-a-jump-model/29303 "2019-09-30T05:04:18Z")

</div>

I have a JuMP model and I want to evaluate the following functions for this model: MathProgBase.eval\_f(), MathProgBase.eval\_g(), MathProgBase.jac\_structure(), MathProgBase.eval\_grad\_f(). The model is as the following: M…

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

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