# Help with Logit NLP problem

**URL:** <https://discourse.julialang.org/t/help-with-logit-nlp-problem/19296>\
**Category:** Optimization (Mathematical)\
**Created:** [January 5, 2019, 7:07am UTC](https://discourse.julialang.org/t/help-with-logit-nlp-problem/19296 "2019-01-05T07:07:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [January 8, 2019, 4:06pm UTC](https://discourse.julialang.org/t/help-with-logit-nlp-problem/19296/2 "2019-01-08T16:06:56Z")

</div>

From a quick glance, I can’t see anything unusual. What is the type of `y_train`?

Can you simplify the example? Strip out all the unneeded parts so that the error still occurs. For example, you could use random data for `X_train` etc to remove the dependence on ScikitLearn.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/help-with-logit-nlp-problem/19296)._
