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

Proper configuration #110

Open
ghost opened this issue Jun 7, 2019 · 4 comments
Open

Proper configuration #110

ghost opened this issue Jun 7, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 7, 2019

First, this project is brilliant, thank you. Our CI will hopefully benefit.

If I wanted to modify/augment the prediction approach, should I just tweak standard_prediction_builder.rb in lib/crystalball/rspec?

I'm not entirely clear how to point crystalball to a custom prediction builder class.

@pluff
Copy link
Contributor

pluff commented Jun 7, 2019

@jenkins-infotech you need to extend StandardPredictionBuilder or create your own builder.
Then you need to set configuration option while trying to run crystalball runner.
Check out configuration docs and example configuration file

In your particular case you need to specify prediction_builder_class_name: configuration option and set proper path to requires: option so crystalball knows where to find your custom builder.

Hope it helps. Sorry for incomplete docs, PRs are welcome here: https://github.com/toptal/crystalball/tree/master/docs

@ghost
Copy link
Author

ghost commented Jun 10, 2019 via email

@ghost
Copy link
Author

ghost commented Jul 2, 2019 via email

@ghost
Copy link
Author

ghost commented Jul 2, 2019 via email

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

1 participant