Skip to content

Instantly share code, notes, and snippets.

@geniusnhu
Last active August 23, 2021 01:09
Show Gist options
  • Save geniusnhu/954d5aeb8e9c078eb524f3f1dbb35a10 to your computer and use it in GitHub Desktop.
Save geniusnhu/954d5aeb8e9c078eb524f3f1dbb35a10 to your computer and use it in GitHub Desktop.
Main code pipeline example
## 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