# MethodError: Evolution of Out Of Sample Performance Range

**URL:** <https://discourse.julialang.org/t/methoderror-evolution-of-out-of-sample-performance-range/65041>\
**Category:** Specific Domains\
**Tags:** package\
**Created:** [July 21, 2021, 3:36pm UTC](https://discourse.julialang.org/t/methoderror-evolution-of-out-of-sample-performance-range/65041 "2021-07-21T15:36:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YummyPampers2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yummypampers2/32/27328_2.png) [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Post date:** [July 21, 2021, 3:36pm UTC](https://discourse.julialang.org/t/methoderror-evolution-of-out-of-sample-performance-range/65041/1 "2021-07-21T15:36:18Z")

</div>

Hello Folks:

I am using MLJ@.load\_boston data where

```julia
feat, targ = MLJ.@load_boston
	feat = DataFrames.DataFrame(feat)
	targ = categorical(targ)

```

I have split the categorical.array using:

```julia
	rng = 52
	TRAIN, TEST = partition(eachindex(targ), 0.8, shuffle=true, rng=rng)

```

I am loading the NNC model using:

```julia
	mflux = @load NeuralNetworkClassifier
	clf = NeuralNetworkClassifier()

```

Testing the machine using:

```julia
FLUX = machine(clf, feat, targ)

```

Fitting the machine with:

```julia
MLJ.fit!(FLUX, rows=TRAIN, verbosity=3)

```

When I enter the following:

```julia
r_clf = range(clf, :epochs, lower=1, upper=200, scale=:log10)

```

… am getting the following error:

```julia
MethodError: objects of type Int64 are not callable

```

When I remove the categorical(targ) casting,  
I get another suite of issues.

Any ideas out there?

---

<div class="post-metadata">

**Author:** ![YummyPampers2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yummypampers2/32/27328_2.png) [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Post date:** [July 21, 2021, 3:46pm UTC](https://discourse.julialang.org/t/methoderror-evolution-of-out-of-sample-performance-range/65041/2 "2021-07-21T15:46:33Z")

</div>

Okay – First issue addressed. Prefixing:

```julia
MLJ.range()

```
