2021-10-15 07:18:45 +03:00
|
|
|
## Interested in contributing to SynapseML? We're excited to work with you.
|
2017-06-02 18:57:25 +03:00
|
|
|
|
2017-07-10 20:46:18 +03:00
|
|
|
### You can contribute in many ways:
|
2017-06-02 18:57:25 +03:00
|
|
|
|
2019-07-31 17:59:53 +03:00
|
|
|
- Use the library and give feedback: report bugs, request features.
|
|
|
|
- Add sample Jupyter notebooks, Python or Scala code examples, documentation
|
|
|
|
pages.
|
|
|
|
- Fix bugs and issues.
|
|
|
|
- Add new features, such as data transformations or machine learning algorithms.
|
|
|
|
- Review pull requests from other contributors.
|
2017-06-02 18:57:25 +03:00
|
|
|
|
|
|
|
### How to contribute?
|
|
|
|
|
2017-07-10 20:46:18 +03:00
|
|
|
You can give feedback, report bugs and request new features anytime by opening
|
|
|
|
an issue. Also, you can up-vote or comment on existing issues.
|
2017-06-02 18:57:25 +03:00
|
|
|
|
2017-07-10 20:46:18 +03:00
|
|
|
If you want to add code, examples or documentation to the repository, follow
|
|
|
|
this process:
|
2017-06-02 18:57:25 +03:00
|
|
|
|
2017-07-10 20:46:18 +03:00
|
|
|
#### Propose a contribution
|
|
|
|
|
2019-07-31 17:59:53 +03:00
|
|
|
- Preferably, get started by tackling existing issues to get yourself acquainted
|
|
|
|
with the library source and the process.
|
|
|
|
- Open an issue, or comment on an existing issue to discuss your contribution
|
|
|
|
and design, to ensure your contribution is a good fit and doesn't duplicate
|
|
|
|
on-going work.
|
|
|
|
- Any algorithm you're planning to contribute should be well known and accepted
|
|
|
|
for production use, and backed by research papers.
|
|
|
|
- Algorithms should be highly scalable and suitable for very large datasets.
|
|
|
|
- All contributions need to comply with the MIT License. Contributors external
|
|
|
|
to Microsoft need to sign CLA.
|
2017-07-10 20:46:18 +03:00
|
|
|
|
|
|
|
#### Implement your contribution
|
|
|
|
|
2021-10-15 07:18:45 +03:00
|
|
|
- Fork the SynapseML repository.
|
2019-07-31 17:59:53 +03:00
|
|
|
- Implement your algorithm in Scala, using our wrapper generation mechanism to
|
|
|
|
produce PySpark bindings.
|
|
|
|
- Use SparkML `PipelineStage`s so your algorithm can be used as a part of
|
|
|
|
pipeline.
|
|
|
|
- Implement model saving and loading by extending SparkML `MLReadable`.
|
|
|
|
- Use good Scala style.
|
|
|
|
- Binary dependencies should be on Maven Central.
|
2021-12-09 10:13:12 +03:00
|
|
|
- See this [pull request](https://github.com/microsoft/SynapseML/pull/1282) for an
|
2019-07-31 17:59:53 +03:00
|
|
|
example contribution.
|
2017-07-10 20:46:18 +03:00
|
|
|
|
|
|
|
#### Implement tests
|
|
|
|
|
2023-09-05 16:19:57 +03:00
|
|
|
- Set up build environment using the [developer guide](https://microsoft.github.io/SynapseML/docs/Reference/Developer%20Setup/)
|
2019-07-31 17:59:53 +03:00
|
|
|
- Test your code locally.
|
|
|
|
- Add tests using ScalaTests — unit tests are required.
|
|
|
|
- A sample notebook is required as an end-to-end test.
|
2017-07-10 20:46:18 +03:00
|
|
|
|
|
|
|
#### Implement documentation
|
|
|
|
|
2023-07-19 22:14:46 +03:00
|
|
|
- Add a [sample Jupyter notebook](docs/) that shows the intended use
|
2019-07-31 17:59:53 +03:00
|
|
|
case of your algorithm, with instructions in step-by-step manner. (The same
|
|
|
|
notebook could be used for testing the code.)
|
|
|
|
- Add in-line ScalaDoc comments to your source code, to generate the [API
|
|
|
|
reference documentation](https://mmlspark.azureedge.net/docs/pyspark/)
|
2017-07-10 20:46:18 +03:00
|
|
|
|
|
|
|
#### Open a pull request
|
|
|
|
|
2019-07-31 17:59:53 +03:00
|
|
|
- In most cases, you should squash your commits into one.
|
|
|
|
- Open a pull request, and link it to the discussion issue you created earlier.
|
2023-11-20 20:48:37 +03:00
|
|
|
- A SynapseML core team member will trigger a build to test your changes.
|
2019-07-31 17:59:53 +03:00
|
|
|
- Fix any build failures. (The pull request will have comments from the build
|
|
|
|
with useful links.)
|
|
|
|
- Wait for code reviews from core team members and others.
|
|
|
|
- Fix issues found in code review and re-iterate.
|
2017-07-10 20:46:18 +03:00
|
|
|
|
|
|
|
#### Build and check-in
|
|
|
|
|
2019-07-31 17:59:53 +03:00
|
|
|
- Wait for a core team member to merge your code in.
|
|
|
|
- Your feature will be available through a Docker image and script installation
|
|
|
|
in the next release, which typically happens around once a month. You can try
|
|
|
|
out your features sooner by using build artifacts for the version that has
|
|
|
|
your changes merged in (such versions end with a `.devN`).
|
2017-07-10 20:46:18 +03:00
|
|
|
|
|
|
|
If in doubt about how to do something, see how it was done in existing code or
|
|
|
|
pull requests, and don't hesitate to ask.
|