README.md in eps-0.3.0 vs README.md in eps-0.3.1

- old
+ new

@@ -367,10 +367,16 @@ gem 'gsl', group: :development ``` It only needs to be available in environments used to build the model. +By default, an intercept is included. Disable this with: + +```ruby +Eps::Model.new(data, intercept: false) +``` + ## Validation Options Pass your own validation set with: ```ruby @@ -387,10 +393,16 @@ ```ruby Eps::Model.new(data, split: {validation_size: 0.2}) ``` +Disable the validation set completely with: + +```ruby +Eps::Model.new(data, split: false) +``` + ## Database Storage The database is another place you can store models. It’s good if you retrain models automatically. > We recommend adding monitoring and guardrails as well if you retrain automatically @@ -416,9 +428,31 @@ ``` ## Jupyter & IRuby You can use [IRuby](https://github.com/SciRuby/iruby) to run Eps in [Jupyter](https://jupyter.org/) notebooks. Here’s how to get [IRuby working with Rails](https://ankane.org/jupyter-rails). + +## Weights + +Specify a weight for each data point + +```ruby +Eps::Model.new(data, weight: :weight) +``` + +You can also pass an array + +```ruby +Eps::Model.new(data, weight: [1, 2, 3]) +``` + +Weights are supported for metrics as well + +```ruby +Eps.metrics(actual, predicted, weight: weight) +``` + +Reweighing is one method to [mitigate bias](http://aif360.mybluemix.net/) in training data ## Upgrading ## 0.3.0