Last active
March 7, 2019 18:39
-
-
Save mrafayaleem/ec0a3f67d6575c62d853bd573ed5473b to your computer and use it in GitHub Desktop.
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
import os | |
from bigdl.nn.criterion import * | |
from bigdl.nn.layer import * | |
from bigdl.optim.optimizer import Adam | |
from pyspark.ml import Pipeline | |
from pyspark.ml.evaluation import MulticlassClassificationEvaluator | |
from pyspark.sql.functions import col, udf | |
from pyspark.sql.types import DoubleType, StringType | |
from zoo.common.nncontext import * | |
from zoo.feature.image import * | |
from zoo.pipeline.nnframes import * | |
sc = init_nncontext("TransferLearningBlog") | |
model_path = '/Users/rafay/work/blog/analytics-zoo_resnet-50_imagenet_0.1.0.model' | |
train_path = '/Users/rafay/work/blog/data/train/*' | |
val_path = '/Users/rafay/work/blog/data/val/*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment