Example package for sync
Project description
Arima Sync Package
This is brief user guide for Sync lib.
Please make sure the directories are properly set up before calling the APIs.
Directories
- data: Data folder contains the input "data_file". The input "data_file" is a csv file.
- output: generated individual level dataframe is saved here in csv format. With name "individual_<model_name>.csv"
- src: where the main scripts are
Scripts
- utils.py: a collection of basic filing operations used by serveral scripts
- utils_function.py: a collection of basic mathemtical operations used by several scripts
- functions.py: the key algorithms functions of SynC
- paths.py: store all path-related variables
How to generate data
-
There are three input parameters for generating the individual data.
-
- "data_file" contains aggregation level feature data.
-
- "init_features" and "feature_list" are in format of list of list. Every list in "init_features" and "feature_list" should represents one catagory of feature. e.g: [['AG_20_to_40','AG_40_to_60','AG_60_to_80','AG_80_to_100'], ['Gender']]. Here the age feature is divided into four columns in one list. They represents one type of feature with multually exclusive property, therefore they are combined in one list. While another feature gender has only one column representing "male" or "female"(gender at the demographic level), as a binary option.
-
- "agg_units" will be used when sync the individual data. The "agg_units" should be a single csv files contains two columns. First column contains the aggregation name, for instance, postal code "A0A1A0". Second column must be an interger represents the unit in that aggregation units. "A0A1A0, 65" means the number of population in postal code area A0A1A0 is 65.
-
Other parameters:
-
"model_name", "path" are customized parameters. "model_name" specify the training models's name. "path" is the location for the input data files "data_file" and "agg_units".
-
"cumulative" set True to training and sync in a cumulative way. False to non-cumulative. The cumulative means every feature in "feature_list" is trained and generated by order. The subsequent feature in the list will be trained based on all previous feature data.
-
Please refer to run.py as an example of running Sync APIs.
Note
-
- Make sure the input data file "data_file" contains all of the data columns you want to train and predict. Null values in csv file should be avoided to assure the model has proper results.
-
- Specify the "init_features" and "feature_list" using the column names in csv files.
-
- Currently the algorithm does not support Python 3.9/3.10.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SyncAlgo-0.1.1.tar.gz.
File metadata
- Download URL: SyncAlgo-0.1.1.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d632c05cfbfc147917b631025e950eb15bce0e7e8e2cc981e4f6e7f64738d28f
|
|
| MD5 |
c66417f87c5dadaef707a87c426f2511
|
|
| BLAKE2b-256 |
94eb10dfd8a493c1add371786b56269de96da62cce456e7b1c9167dc66748980
|
File details
Details for the file SyncAlgo-0.1.1-py3-none-any.whl.
File metadata
- Download URL: SyncAlgo-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
959a727d369eefe062dcd9f80f90831ea6ae2006f7f0036c4516c0720d9cf299
|
|
| MD5 |
b5c3b5c62efd6653392073372a23fe20
|
|
| BLAKE2b-256 |
75b69e63c8218fddeec5cfcb28d1d20fb6cc8ed536f5b0d0739047d65ddf7c47
|