-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (17 loc) · 675 Bytes
/
main.py
File metadata and controls
33 lines (17 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
This file is the main python file, designed to import the pickled clustering system,
get the new user's input data, process that input and predict the cluster to recommend subreddits
"""
# DEPENDENCIES
import pandas as pd
import numpy as np
import joblib # for the pickled clustering model
# IMPORT THE MODEL
# IMPORT THE PIPELINE'S FUNCTIONS
from askuser import getSubreddits
# GLOBAL VARIABLES
# DEFINE FUNCTIONS
# Call the function to ask the user's input
# getSubreddits()
# set the result equal to something so it can be used in the next stage in the pipeline
# pass the user's input through the same data "processing" that the model's data was done