# Face this run time error

**URL:** https://discourse.julialang.org/t/face-this-run-time-error/32418
**Category:** General Usage
**Created:** [December 18, 2019, 1:52am UTC](https://discourse.julialang.org/t/face-this-run-time-error/32418 "2019-12-18T01:52:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![imrankhan\_juliaLang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/imrankhan_julialang/32/12020_2.png) [@imrankhan\_juliaLang](https://discourse.julialang.org/u/imrankhan_juliaLang)
#### Post date: [December 18, 2019, 1:52am UTC](https://discourse.julialang.org/t/face-this-run-time-error/32418/1 "2019-12-18T01:52:11Z")

</div>

I face this error in MJL pakage

 ![pbb](https://global.discourse-cdn.com/julialang/original/3X/9/d/9dd463b6cd10998024c5b299e5b7c58941cf3d73.png)

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [December 18, 2019, 11:07am UTC](https://discourse.julialang.org/t/face-this-run-time-error/32418/2 "2019-12-18T11:07:31Z")

</div>

Which version of MLJ are you on? You seem to roughly be running the intro example from the docs, which runs fine for me on MLJ version 0.6:

```julia
julia> using MLJ, RDatasets

julia> iris = dataset("datasets", "iris");

julia> y, X = unpack(iris, ==(:Species), colname -> true);

julia> tree_model = @load DecisionTreeClassifier verbosity = 1
import MLJModels ✔
import DecisionTree ✔
import MLJModels.DecisionTree_.DecisionTreeClassifier ✔
DecisionTreeClassifier(pruning_purity = 1.0,
                       max_depth = -1,
                       min_samples_leaf = 1,
                       min_samples_split = 2,
                       min_purity_increase = 0.0,
                       n_subfeatures = 0,
                       display_depth = 5,
                       post_prune = false,
                       merge_purity_threshold = 0.9,
                       pdf_smoothing = 0.05,) @ 1…93

julia> tree = machine(tree_model, X, y)
Machine{DecisionTreeClassifier} @ 4…03

```

---

<div class="post-metadata">

### Author: ![imrankhan\_juliaLang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/imrankhan_julialang/32/12020_2.png) [@imrankhan\_juliaLang](https://discourse.julialang.org/u/imrankhan_juliaLang)
#### Post date: [December 18, 2019, 2:43pm UTC](https://discourse.julialang.org/t/face-this-run-time-error/32418/3 "2019-12-18T14:43:15Z")

</div>

Now its show this error on my data

 ![pbb](https://global.discourse-cdn.com/julialang/original/3X/6/b/6bcda6c3cefdc7476468d38f66d315036f3156f5.png)

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [December 18, 2019, 4:34pm UTC](https://discourse.julialang.org/t/face-this-run-time-error/32418/4 "2019-12-18T16:34:46Z")

</div>

Could you maybe post an [MWE](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757) that reproduces your error as in the linked post? This would make it a lot more likely that someone on this forum can work out what’s going awry in your code.
