ATL code converted to Python 3
Go to file
Marcus Vinicius de Carvalho 661c1c4d07 ATL Python is complete
ATL Python is complete and performs as expected.
2020-02-19 15:04:30 +08:00
.gitattributes Initial commit 2019-12-04 14:06:27 +08:00
.gitignore Update .gitignore 2020-02-19 14:16:05 +08:00
AGMM.py ATL_Python - first commit 2019-12-04 14:18:56 +08:00
ATL.py ATL Python is complete 2020-02-19 15:04:30 +08:00
AutoEncoder.py ATL_Python - first commit 2019-12-04 14:18:56 +08:00
DataManipulator.py ATL Python is complete 2020-02-19 15:04:30 +08:00
ElasticNodes.py ATL_Python - first commit 2019-12-04 14:18:56 +08:00
MySingletons.py ATL_Python - first commit 2019-12-04 14:18:56 +08:00
MyUtil.py ATL_Python - first commit 2019-12-04 14:18:56 +08:00
NeuralNetwork.py ATL_Python - first commit 2019-12-04 14:18:56 +08:00
README.md ATL Python is complete 2020-02-19 15:04:30 +08:00
data.csv ATL_Python - first commit 2019-12-04 14:18:56 +08:00
environment.yml Improve README.md and provide dependencies file 2020-02-19 12:39:11 +08:00

README.md

Reference

Paper

ATL: Autonomous Knowledge Transfer from Many Streaming Processes

ArXiv

ResearchGate

ACM Digital Library

Bibtex

@inproceedings{10.1145/3357384.3357948,
author = {Pratama, Mahardhika and de Carvalho, Marcus and Xie, Renchunzi and Lughofer, Edwin and Lu, Jie},
title = {ATL: Autonomous Knowledge Transfer from Many Streaming Processes},
year = {2019},
isbn = {9781450369763},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3357384.3357948},
doi = {10.1145/3357384.3357948},
booktitle = {Proceedings of the 28th ACM International Conference on Information and Knowledge Management},
pages = {269278},
numpages = {10},
keywords = {concept drif, transfer learning, deep learning, multistream learning},
location = {Beijing, China},
series = {CIKM 19}
}

Notes

If you want to see the original code used for this paper, access ATL_Matlab

ATL_Python is a reconstruction of ATL_Matlab made by the same author, but using Python 3.6 and PyTorch (with autograd enabled and GPU support).

ATL_Python

ATL: Autonomous Knowledge Transfer From Many Streaming Processes ACM CIKM 2019

  1. Clone ATL_Python git to your computer, or just download the files.

  2. Install anaconda or miniconda.

  3. Open Anaconda prompt and travel until ATL folder.

  4. Run the following command conda env create -f environment.yml. This will create an environment called atl with every python packaged/library needed to run ATL.

  5. Enable ATL environment by running the command activate atl or conda activate atl.

  6. Provide a dataset by replacing the file data.csv The current data.csv holds SEA dataset. data.csv must be prepared as following:

- Each row presents a new data sample
- Each column presents a data feature
- The last column presents the label for that sample. Don't use one-hot encoding. Use a format from 1 onwards
  1. Run python ATL.py

ATL will automatically normalize your data and split your data into 2 streams (Source and Target data streams) with a bias between them, as described in the paper.

ATL statues are printed at the end of every minibatch, where you will be able to follow useful information as:

- Training time (maximum, mean, minimum, current and accumulated)
- Testing time (maximum, mean, minimum, current and accumulated)
- Classification Rate for the Source (maximum, mean, minimum and current)
- Classification Rate for the Target (maximum, mean, minimum and current)
- Classification Loss for the Source (maximum, mean, minimum and current)
- Classification Loss for the Target (maximum, mean, minimum and current)
- Reconstruction Loss for the Source (maximum, mean, minimum and current)
- Reconstruction Loss for the Target (maximum, mean, minimum and current)
- Kullback-Leibler Loss (maximum, mean, minimum and current)
- Number of nodes (maximum, mean, minimum and current)
- And a quick review of ATL structure (both discriminative and generative phases), where you can see how many automatically generated nodes were created.

At the end of the process, ATL will plot 6 graphs:

- The processing time per mini-batch and the total processing time as well, both for training and testing
- The evolution of nodes over time
- The target and source classification rate evolution, as well as the final mean accuracy of the network 
- The number of GMMs on Source AGMM and Target AGMM
- Losess for the source and target classification as well as source and target reconstruction
- Bias and Variance of the discriminative phase
- Bias and Variance of the generative phase

Thank you.

Download all datasets used on the paper

As some datasets are too big, we can't upload them to GitHub. GitHub has a size limit of 35MB per file. Because of that, you can find all the datasets in a csv format on the anonymous link below. To test it, copy the desired dataset to the same folder as ATL and rename it to data.csv.