This file contains hidden or 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
from pyspark.sql import functions as F | |
from pyspark.sql.types import DoubleType | |
import pandas as pd | |
from sklearn.externals import joblib | |
def make_predictions(sc, df, feature_cols, model_path): | |
""" | |
Make predictions. | |