# LightHouse.jl Implementation

**URL:** https://discourse.julialang.org/t/lighthouse-jl-implementation/65051
**Category:** Visualization
**Created:** [July 21, 2021, 5:02pm UTC](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051 "2021-07-21T17:02:47Z")
**Posts on this page:** 3
**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, 5:02pm UTC](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051/1 "2021-07-21T17:02:47Z")

</div>

Good Day:

II am attempting to create an ROC\_CURVE  
with Lighthouse.jl. I am attempting to generate  
one with the MLJ.@load\_boston dataset.

My general questions are:

1. How do I designate class? names(df)?  
Should I:

```julia
classes = ["class $i" for i in 1:5]

```

1. What should I use as my curve value?  
I was able to create one using:

```julia
curve_clf = MLJ.learning_curve(clf, feat, targ,range=r_clf,
					   resampling=MLJ.Holdout(fraction_train=0.8),
					   measure=MLJ.cross_entropy)

```

or should I:

```julia
curves = [(LinRange(0, 1, 10), range(0, stop=i/2, length=10) .+ (stable_randn(10) .* 0.1)) for i in -1:3]

```

(Extra: In this case, how would I prefix stable\_rand?)

In all I would like to apply Lighthouse.plot\_roc\_curves). But  
am having trouble choosing a starting point.

Does anyone have experience with Lighthouse or is there  
some other variety (not from SciKitLearn.jl) that is practical  
to implement?

---

<div class="post-metadata">

### Author: ![George9000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/george9000/32/23619_2.png) [@George9000](https://discourse.julialang.org/u/George9000)
#### Post date: [July 22, 2021, 1:24am UTC](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051/2 "2021-07-22T01:24:34Z")

</div>

There are some gotchas in these analyses. [This](https://academic.oup.com/bioinformatics/article/31/15/2595/187781) and [this](https://tamasnagy.com/blog/precision-recall-julia/) may be helpful in thinking through issues. I’m not sure if Lighthouse incorporated such considerations into their package.

---

<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 22, 2021, 10:29pm UTC](https://discourse.julialang.org/t/lighthouse-jl-implementation/65051/3 "2021-07-22T22:29:50Z")

</div>

@George9000 Thank you for sharing!

Might you know of any 2018 or more  
recent sources? I have noticed that  
these items have about am 18 month  
cycle (or less) before some of the  
modules are deprecated.
