Last active
August 23, 2021 01:09
-
-
Save geniusnhu/954d5aeb8e9c078eb524f3f1dbb35a10 to your computer and use it in GitHub Desktop.
Main code pipeline example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Example of the main code pipeline in .py format | |
import sys, os | |
import pandas as pd | |
import numpy as np | |
from your_classes.ClassOne import load_funtion, preprocess_function, training_function, save_result_function | |
import your_classes.PATH | |
def main(): | |
# load data | |
data = load_funtion(your_classes.PATH) | |
# Preprocess data | |
preprocess_data = preprocess_function(data) | |
# Train | |
result = training_function(preprocess_data) | |
# Save result | |
save_result_function(result) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment