When contributing to this repository, please first discuss the change you wish to make via issue, email whose address is contact@FedAI.org (or use the link mailto directly), or any other method with the owners of this repository before making a change. For more contact information, you may also refer to our official website
Please note we have a code of conduct, please follow it in all your interactions with the project.
Before sending your pull requests, make sure you followed this list.
We are more than glad to accept your patches. To start with, please make sure you have signed every commit with Developer Certificate of Origin (DCO). If you are still not familiar with DCO, please check this website for more information.
If you want to purpose a new feature and implement it, please open an issue and discuss the design and implementation with us.
If you are interested in implementing an existed feature or bug-fix issue, please make a comment on the task that you want to work. And it is still strong recommended to discuss with us about your design and implementation.
If you are not sure where to start, trying smaller and easier issue may be a good idea and then take a look at the issue with the "contributions welcome" label.
Once you are ready to send your pull request, we will create a contributor branch to which you can send pull request. Then, FATE team members will be assigned to review and test your pull request. Once the review is pass, your contribution is accepted and will be released in a future version.
If you have ideas of new features but don't know how to start with, a develop guide has been provided
Before sending your pull request, here are some principle and standards to follow.
Include unit tests when you contribute new features. You may created a test folder in your module and put your test files in it. Here is an example. FATE provides a test script for you to check all unit test. Make sure your code work correctly.
Provide examples in example folder. If specific format data is needed, please also provided example data in data folder. In your algorithm examples, some dsl and conf files should be provided and provide a testsuite file with which user can test your example easily. Here is an example of testsuite file
After you contribute a new feature to FATE, FATE team members are (by default) responsible for the maintenance of this feature. This means we must make comparison between the benefit of contribution and the cost of maintaining the feature and accept those features with greater benefits.
Include a license at the top of new files. A license example has list below.
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
You should make sure your code and comments are consistent with the following coding style.