Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
def main(): | |
##ARGPARSE | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--data-folder', type=str, dest='data_folder', help='data folder mounting point') | |
parser.add_argument('--batch-size', type=int, dest='batch_size', default=50, help='mini batch size for training') | |
parser.add_argument('--learning-rate', type=float, dest='learning_rate', default=0.001, help='learning rate') | |
parser.add_argument('--prefix', type=str, dest='prefix', help='target path when uploading data to Azure storage') | |
parser.add_argument('--steps', type=int, dest='steps', help = 'number of steps') | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
def train_input_fn(training_dir, hyperparameters): | |
#training directory is the path to our data in S3 bucket | |
path=os.path.join(training_dir,'train.json') | |
with open(path,'rb') as f: | |
train=json.load(f) | |
X_train=np.array(train['images'],dtype=np.float64) | |
y_train=np.array(train['labels'],dtype=np.int64) | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer