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 boto3 | |
import mxnet as mx | |
from mxnet.io import NDArrayIter | |
def predict_from_s3(record, bucket_name, s3_symbol_key, s3_params_key): | |
"""Graphs MXNet network definitions from and S3 bucket and uses it for prediction on a single record | |
Keyword arguments: | |
record -- the record to predict from | |
bucket_name -- bucket where your MXNet network is stored |