Shellmiao 9279d1873b Add projects | 1 year ago | |
---|---|---|
.. | ||
Bert-example.ipynb | 1 year ago | |
CTR-example.ipynb | 1 year ago | |
Hetero-NN-Customize-Dataset.ipynb | 1 year ago | |
Hetero-NN-Customize-Model.ipynb | 1 year ago | |
Hetero-NN-Mix-Task.ipynb | 1 year ago | |
Hetero-NN-Quick-Start.ipynb | 1 year ago | |
Homo-NN-Customize-Loss.ipynb | 1 year ago | |
Homo-NN-Customize-Model.ipynb | 1 year ago | |
Homo-NN-Customize-Trainer.ipynb | 1 year ago | |
Homo-NN-Customize-your-Dataset.ipynb | 1 year ago | |
Homo-NN-Quick-Start.ipynb | 1 year ago | |
Homo-NN-Trainer-Interfaces.ipynb | 1 year ago | |
Homo-NN-aggregator.ipynb | 1 year ago | |
Introduce-Built-In-Dataset.ipynb | 1 year ago | |
README.md | 1 year ago | |
Resnet-example.ipynb | 1 year ago |
In FATE-1.10,the whole NN framework is re-designed for highly customizable machine learning. With this framework, you can create your own models, datasets, trainers, and aggregators to meet your specific needs. This tutorial introduces you to our brand new framework. With links below, you can learn how to use our Homo & Hetero(Horizontal and Vertical) NN step by step. Please notice that this tutorial is based on the standalone version, if you are using the cluster version, you may have to deploy the codes/data on every party respectively.
To get yourself be familiar with FATE-NN and pipeline, we recommend completing these two quick start tutorials. If you are using tabular data and do not require any customizations, these tutorials should be sufficient for your needs
Customizing a dataset in PyTorch is similar to using the built-in PyTorch Dataset class. In this chapter, we will use a simple image classification task - the MNIST Handwritten Recognition dataset - as an example to demonstrate how to customize and use your own dataset in FATE.
In this section, we show you how to customize loss functions
In FATE 1.10, you can create a PyTorch model by subclassing nn.Module. Using the example from the previous chapter, we will demonstrate how to develop, deploy, and use a more complex model in FATE.
In order to show you how to develop your own Trainer, here we try to develop a simple Trainer to implement the FedProx algorithm (this is just an exsample, please do not use it for production). In addition, we will also show you how to use the interface that comes with TrainerBase to save the model, set the checkpoint, output the prediction results, and use the interface to display some data on FateBoard.
Here we offer some advanced examples of using FATE-NN framework.