Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentError: comparison of String with 1.0000000180025095e-35 failed #22

Closed
creativetags opened this issue Jan 21, 2021 · 1 comment
Closed

Comments

@creativetags
Copy link

creativetags commented Jan 21, 2021

I'm seeing a weird issue trying out your example code with some of my data.

class MarkModel < Eps::Base
  def build
    data = [{:title=>"Full Stack Developer Needed for property rental management website", :category=>"Full Stack Development", :mark=>true}, {:title=>"UI/UX design - Upwork", :category=>"UX/UI Design", :mark=>false}]

    model = Eps::Model.new(data, target: :mark)
    puts model.summary
  end

  private

  def features(p)
    {
      title: p.title.to_s,
      category: p.category.to_s,
      mark: p.mark
    }
  end

end

With this data I get:

ArgumentError: comparison of String with 1.0000000180025095e-35 failed
from .../eps-0.3.7/lib/eps/evaluators/lightgbm.rb:95:in `>'

but change the 2nd title to :title=>"UI/UX design" and it works fine. Certain combinations of words work and others don't.

@ankane ankane closed this as completed in 5c20825 Jan 21, 2021
@ankane
Copy link
Owner

ankane commented Jan 21, 2021

Hey @creativetags, thanks for reporting! Should be fixed on master (text features were throwing off the index of categorical features).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants