Skip to content

Don't default to OPENBLAS_NUM_THREADS=1 in notebooks #233

Open
@ajinkya-k

Description

@ajinkya-k

Hello!

engine: julia produces different output than REPL and also jupyter: julia-1.11. Also tagging @dmbates (who is the dev for MixedModels.jl) here who also had the same issue on his machine.

See example with screenshot below.

MWE:

---
title: "Evaluation with `engine:julia`"
format: html
engine: julia # or `jupyter: julia-1.11`
---

```{julia}
using DataFrames, MixedModels
dat = DataFrame(MixedModels.dataset("InstEval"));
```

```{julia}
m1 = fit(
  MixedModel,
  @formula(y ~ 1 + service + (1 | s) + (1 | d) + (1 + service | dept)),
  dat,
  progress=false    # suppress the display of a progress bar
)
print(m1)
```

REPL output:

Linear mixed model fit by maximum likelihood
 y ~ 1 + service + (1 | s) + (1 | d) + (1 + service | dept)
    logLik     -2 logLik       AIC         AICc          BIC     
 -118823.5292  237647.0584  237663.0584  237663.0603  237736.6901

Variance components:
            Column    Variance  Std.Dev.   Corr.
s        (Intercept)  0.1052731 0.3244581
d        (Intercept)  0.2624317 0.5122809
dept     (Intercept)  0.0029301 0.0541304
         service: Y   0.0259415 0.1610636 -0.57
Residual              1.3849984 1.1768596
 Number of obs: 73421; levels of grouping factors: 2972, 1128, 14

  Fixed-effects parameters:
─────────────────────────────────────────────────────
                  Coef.  Std. Error       z  Pr(>|z|)
─────────────────────────────────────────────────────
(Intercept)   3.2785      0.0240519  136.31    <1e-99
service: Y   -0.0496954   0.0460234   -1.08    0.2802
─────────────────────────────────────────────────────

jupyter: julia-1.11 and engine: jupyter output:
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions