lib/eps/lightgbm.rb in eps-0.3.5 vs lib/eps/lightgbm.rb in eps-0.3.6
- old
+ new
@@ -55,11 +55,11 @@
end
end
# text feature encoding
prep_text_features(train_set)
- prep_text_features(validation_set) if validation_set
+ prep_text_features(validation_set, fit: false) if validation_set
# create params
params = {
objective: objective,
learning_rate: learning_rate
@@ -142,10 +142,13 @@
bad_observations << {expected: exp, actual: act, data_point: evaluator_set[i].map(&:itself).first}
end
end
if bad_observations.any?
- raise "Bug detected in evaluator. Please report an issue. Bad data points: #{bad_observations.inspect}"
+ bad_observations.each do |obs|
+ p obs
+ end
+ raise "Bug detected in evaluator. Please report an issue."
end
end
# for evaluator