Search is not available for this dataset
repo
stringlengths
2
152
⌀
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
nni
nni-master/examples/trials/cifar10_pytorch/main.py
'''Train CIFAR10 with PyTorch.''' from __future__ import print_function import argparse import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import os import argparse import lo...
6,165
29.078049
112
py
nni
nni-master/examples/trials/cifar10_pytorch/main_adl.py
# Copyright 2020 Petuum, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
6,265
35.643275
129
py
nni
nni-master/examples/trials/cifar10_pytorch/utils.py
'''Some helper functions for PyTorch, including: - get_mean_and_std: calculate the mean and std value of dataset. - msr_init: net parameter initialization. - progress_bar: progress bar mimic xlua.progress. ''' import os import sys import time import torch import torch.nn as nn import torch.nn.init as init ...
3,508
26.414063
96
py
nni
nni-master/examples/trials/cifar10_pytorch/models/__init__.py
from .vgg import * from .densenet import * from .dpn import * from .googlenet import * from .lenet import * from .mobilenet import * from .pnasnet import * from .resnet import * from .senet import * from .shufflenet import *
226
17.916667
25
py
nni
nni-master/examples/trials/cifar10_pytorch/models/densenet.py
'''DenseNet in PyTorch.''' import math import torch import torch.nn as nn import torch.nn.functional as F class Bottleneck(nn.Module): def __init__(self, in_planes, growth_rate): super(Bottleneck, self).__init__() self.bn1 = nn.BatchNorm2d(in_planes) self.conv1 = nn.Conv2d(in_planes, 4*gr...
3,542
31.805556
96
py
nni
nni-master/examples/trials/cifar10_pytorch/models/dpn.py
'''Dual Path Networks in PyTorch.''' import torch import torch.nn as nn import torch.nn.functional as F class Bottleneck(nn.Module): def __init__(self, last_planes, in_planes, out_planes, dense_depth, stride, first_layer): super(Bottleneck, self).__init__() self.out_planes = out_planes sel...
3,562
34.989899
116
py
nni
nni-master/examples/trials/cifar10_pytorch/models/googlenet.py
'''GoogLeNet with PyTorch.''' import torch import torch.nn as nn import torch.nn.functional as F class Inception(nn.Module): def __init__(self, in_planes, n1x1, n3x3red, n3x3, n5x5red, n5x5, pool_planes): super(Inception, self).__init__() # 1x1 conv branch self.b1 = nn.Sequential( ...
3,221
28.833333
83
py
nni
nni-master/examples/trials/cifar10_pytorch/models/lenet.py
'''LeNet in PyTorch.''' import torch.nn as nn import torch.nn.functional as F class LeNet(nn.Module): def __init__(self): super(LeNet, self).__init__() self.conv1 = nn.Conv2d(3, 6, 5) self.conv2 = nn.Conv2d(6, 16, 5) self.fc1 = nn.Linear(16*5*5, 120) self.fc2 = nn.Linear...
699
28.166667
43
py
nni
nni-master/examples/trials/cifar10_pytorch/models/mobilenet.py
'''MobileNet in PyTorch. See the paper "MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications" for more details. ''' import torch import torch.nn as nn import torch.nn.functional as F class Block(nn.Module): '''Depthwise conv + Pointwise conv''' def __init__(self, in_planes, out_...
2,025
31.677419
123
py
nni
nni-master/examples/trials/cifar10_pytorch/models/mobilenetv2.py
'''MobileNetV2 in PyTorch. See the paper "Inverted Residuals and Linear Bottlenecks: Mobile Networks for Classification, Detection and Segmentation" for more details. ''' import torch import torch.nn as nn import torch.nn.functional as F class Block(nn.Module): '''expand + depthwise + pointwise''' def __init...
3,092
34.551724
114
py
nni
nni-master/examples/trials/cifar10_pytorch/models/pnasnet.py
'''PNASNet in PyTorch. Paper: Progressive Neural Architecture Search ''' import torch import torch.nn as nn import torch.nn.functional as F class SepConv(nn.Module): '''Separable Convolution.''' def __init__(self, in_planes, out_planes, kernel_size, stride): super(SepConv, self).__init__() se...
4,258
32.801587
105
py
nni
nni-master/examples/trials/cifar10_pytorch/models/preact_resnet.py
'''Pre-activation ResNet in PyTorch. Reference: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Identity Mappings in Deep Residual Networks. arXiv:1603.05027 ''' import torch import torch.nn as nn import torch.nn.functional as F class PreActBlock(nn.Module): '''Pre-activation version of the BasicBlock....
4,078
33.277311
102
py
nni
nni-master/examples/trials/cifar10_pytorch/models/resnet.py
'''ResNet in PyTorch. For Pre-activation ResNet, see 'preact_resnet.py'. Reference: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 ''' import torch import torch.nn as nn import torch.nn.functional as F class BasicBlock(nn.Module): expansi...
4,005
31.836066
102
py
nni
nni-master/examples/trials/cifar10_pytorch/models/resnext.py
'''ResNeXt in PyTorch. See the paper "Aggregated Residual Transformations for Deep Neural Networks" for more details. ''' import torch import torch.nn as nn import torch.nn.functional as F class Block(nn.Module): '''Grouped convolution block.''' expansion = 2 def __init__(self, in_planes, cardinality=32...
3,478
35.239583
129
py
nni
nni-master/examples/trials/cifar10_pytorch/models/senet.py
'''SENet in PyTorch. SENet is the winner of ImageNet-2017. The paper is not released yet. ''' import torch import torch.nn as nn import torch.nn.functional as F class BasicBlock(nn.Module): def __init__(self, in_planes, planes, stride=1): super(BasicBlock, self).__init__() self.conv1 = nn.Conv2d(...
4,027
32.016393
102
py
nni
nni-master/examples/trials/cifar10_pytorch/models/shufflenet.py
'''ShuffleNet in PyTorch. See the paper "ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices" for more details. ''' import torch import torch.nn as nn import torch.nn.functional as F class ShuffleBlock(nn.Module): def __init__(self, groups): super(ShuffleBlock, self).__init...
3,551
31.290909
126
py
nni
nni-master/examples/trials/cifar10_pytorch/models/vgg.py
'''VGG11/13/16/19 in Pytorch.''' import torch import torch.nn as nn cfg = { 'VGG11': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG13': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG16': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512...
1,442
29.0625
117
py
nni
nni-master/examples/trials/efficientnet/README.md
[Documentation](https://nni.readthedocs.io/en/latest/TrialExample/EfficientNet.html)
85
42
84
md
nni
nni-master/examples/trials/efficientnet/README_zh_CN.md
[文档](https://nni.readthedocs.io/zh/latest/TrialExample/EfficientNet.html)
73
73
73
md
nni
nni-master/examples/trials/efficientnet/config.yml
searchSpaceFile: search_net.json trialCodeDirectory: EfficientNet-PyTorch trialCommand: python3 main.py /data/imagenet -j 12 -a efficientnet --batch-size 48 --lr 0.048 --wd 1e-5 --epochs 5 --request-from-nni trialGpuNumber: 1 trialConcurrency: 4 maxTrialNumber: 100 tuner: className: tuner.FixedProductTuner codeDire...
709
43.375
140
yml
nni
nni-master/examples/trials/efficientnet/config_windows.yml
searchSpaceFile: search_net.json trialCodeDirectory: EfficientNet-PyTorch trialCommand: python main.py /data/imagenet -j 12 -a efficientnet --batch-size 48 --lr 0.048 --wd 1e-5 --epochs 5 --request-from-nni trialGpuNumber: 1 trialConcurrency: 4 maxTrialNumber: 100 tuner: className: tuner.FixedProductTuner codeDirec...
708
43.3125
140
yml
nni
nni-master/examples/trials/efficientnet/tuner.py
from nni.algorithms.hpo.gridsearch_tuner import GridSearchTuner class FixedProductTuner(GridSearchTuner): """ This tuner is essentially grid search, but it guarantees all the parameters with alpha * beta^2 * gamma^2 is approximately `product`. """ def __init__(self, product): """ ...
985
31.866667
112
py
nni
nni-master/examples/trials/ga_squad/README.md
# Automatic Model Architecture Search for Reading Comprehension This example shows us how to use Genetic Algorithm to find good model architectures for Reading Comprehension task. ## Search Space Since attention and recurrent neural network (RNN) module have been proven effective in Reading Comprehension. We conclude ...
10,570
33.210356
238
md
nni
nni-master/examples/trials/ga_squad/README_zh_CN.md
# 在阅读理解上使用自动模型架构搜索 该示例展示了如何使用遗传算法为阅读理解任务找到好的模型架构。 ## 搜索空间 对于阅读理解项目,注意力和循环神经网络(RNN)模块已经被证明非常有效。 使用的搜索空间如下: 1. IDENTITY (Effectively 表示继续训练)。 2. INSERT-RNN-LAYER (插入 LSTM。 在 Experiment 中比较了 GRU 和 LSTM 的性能后,我们决定在这里采用 LSTM。) 3. REMOVE-RNN-LAYER 4. INSERT-ATTENTION-LAYER (插入注意力层。) 5. REMOVE-ATTENTION-LAYER 6. ADD-SKIP (...
8,152
26.086379
105
md
nni
nni-master/examples/trials/ga_squad/attention.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
6,468
37.278107
100
py
nni
nni-master/examples/trials/ga_squad/config.yml
trialCommand: python3 trial.py trialGpuNumber: 0 trialConcurrency: 1 maxTrialNumber: 10 maxExperimentDuration: 1h searchSpace: {} # hard-coded in tuner tuner: className: customer_tuner.CustomerTuner codeDirectory: ../../tuners/ga_customer_tuner classArgs: optimize_mode: maximize trainingService: # For other...
378
26.071429
68
yml
nni
nni-master/examples/trials/ga_squad/config_windows.yml
trialCommand: python trial.py trialGpuNumber: 0 trialConcurrency: 1 maxTrialNumber: 10 maxExperimentDuration: 1h searchSpace: {} # hard-coded in tuner tuner: className: customer_tuner.CustomerTuner codeDirectory: ../../tuners/ga_customer_tuner classArgs: optimize_mode: maximize trainingService: # For other ...
377
26
68
yml
nni
nni-master/examples/trials/ga_squad/data.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
9,001
32.589552
100
py
nni
nni-master/examples/trials/ga_squad/download.sh
#!/bin/bash wget https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json wget https://rajpurkar.github.io/SQuAD-explorer/dataset/dev-v1.1.json wget http://nlp.stanford.edu/data/glove.840B.300d.zip unzip glove.840B.300d.zip
234
38.166667
71
sh
nni
nni-master/examples/trials/ga_squad/evaluate.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
5,829
35.4375
100
py
nni
nni-master/examples/trials/ga_squad/graph.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
10,200
34.420139
100
py
nni
nni-master/examples/trials/ga_squad/graph_to_tf.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
13,808
39.734513
100
py
nni
nni-master/examples/trials/ga_squad/rnn.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
4,291
35.067227
100
py
nni
nni-master/examples/trials/ga_squad/train_model.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
12,036
44.422642
100
py
nni
nni-master/examples/trials/ga_squad/trial.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, # including without limitation the rights t...
16,810
36.274945
104
py
nni
nni-master/examples/trials/ga_squad/util.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights t...
2,157
27.025974
100
py
nni
nni-master/examples/trials/kaggle-tgs-salt/README.md
## 33rd place solution code for Kaggle [TGS Salt Identification Chanllenge](https://www.kaggle.com/c/tgs-salt-identification-challenge) This example shows how to enable AutoML for competition code by running it on NNI without any code change. To run this code on NNI, firstly you need to run it standalone, then configu...
1,722
29.22807
136
md
nni
nni-master/examples/trials/kaggle-tgs-salt/README_zh_CN.md
## Kaggle 比赛 [TGS Salt Identification Chanllenge](https://www.kaggle.com/c/tgs-salt-identification-challenge) 第 33 名的解决方案 本示例展示了如何不改动代码的情况下通过 NNI 来为竞赛代码使用自动机器学习。 要在 NNI 上运行此代码,首先需要单独运行它,然后配置 config.yml: nnictl create --config config.yml 此代码仍然能够单独运行,但需要至少一周来重现竞赛的结果。 [解决方案概述](https://www.kaggle.com/c/tgs-sal...
1,212
23.26
128
md
nni
nni-master/examples/trials/kaggle-tgs-salt/augmentation.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
8,611
34.586777
127
py
nni
nni-master/examples/trials/kaggle-tgs-salt/config.yml
useAnnotation: true trialCommand: python3 train.py trialGpuNumber: 0 trialConcurrency: 2 maxTrialNumber: 10 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: # For other platforms, check mnist-pytorch example platform: local
255
20.333333
68
yml
nni
nni-master/examples/trials/kaggle-tgs-salt/config_windows.yml
useAnnotation: true trialCommand: python train.py trialGpuNumber: 0 trialConcurrency: 2 maxTrialNumber: 10 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: # For other platforms, check mnist-pytorch example platform: local
254
20.25
68
yml
nni
nni-master/examples/trials/kaggle-tgs-salt/focal_loss.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
2,879
35.923077
100
py
nni
nni-master/examples/trials/kaggle-tgs-salt/loader.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
10,984
36.619863
155
py
nni
nni-master/examples/trials/kaggle-tgs-salt/lovasz_losses.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
8,655
33.213439
128
py
nni
nni-master/examples/trials/kaggle-tgs-salt/metrics.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
2,944
33.244186
100
py
nni
nni-master/examples/trials/kaggle-tgs-salt/models.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
24,976
39.091493
125
py
nni
nni-master/examples/trials/kaggle-tgs-salt/postprocessing.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
2,524
39.079365
105
py
nni
nni-master/examples/trials/kaggle-tgs-salt/predict.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
7,947
38.542289
128
py
nni
nni-master/examples/trials/kaggle-tgs-salt/preprocess.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
4,061
42.212766
156
py
nni
nni-master/examples/trials/kaggle-tgs-salt/settings.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
1,736
37.6
100
py
nni
nni-master/examples/trials/kaggle-tgs-salt/train.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
11,118
41.930502
142
py
nni
nni-master/examples/trials/kaggle-tgs-salt/utils.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
6,401
34.566667
112
py
nni
nni-master/examples/trials/mnist-advisor/config_bohb.yml
# Run following command first to install dependencies of BOHB tuner: # $ python3 -m pip install nni[BOHB] searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialGpuNumber: 0 trialConcurrency: 1 maxExperimentDuration: 10h maxTrialNumber: 1000 advisor: name: BOHB classArgs: max_budget: 27 m...
459
23.210526
68
yml
nni
nni-master/examples/trials/mnist-advisor/config_hyperband.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialGpuNumber: 0 trialConcurrency: 2 maxExperimentDuration: 100h maxTrialNumber: 10000 advisor: name: Hyperband classArgs: R: 100 # the maximum trial budget (could be the number of mini-batches or epochs) can be ...
681
39.117647
117
yml
nni
nni-master/examples/trials/mnist-advisor/mnist.py
"""A deep MNIST classifier using convolutional layers.""" import argparse import logging import math import tempfile import time import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import nni FLAGS = None logger = logging.getLogger('mnist_AutoML') class MnistNetwork(object): ''...
9,524
38.6875
114
py
nni
nni-master/examples/trials/mnist-batch-tune-keras/config.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist-keras.py trialGpuNumber: 0 trialConcurrency: 1 maxTrialNumber: 10 maxExperimentDuration: 1h tuner: name: BatchTuner trainingService: # For other platforms, check mnist-pytorch example platform: local
268
23.454545
68
yml
nni
nni-master/examples/trials/mnist-batch-tune-keras/config_windows.yml
searchSpaceFile: search_space.json trialCommand: python mnist-keras.py trialGpuNumber: 0 trialConcurrency: 1 maxTrialNumber: 10 maxExperimentDuration: 1h tuner: name: BatchTuner trainingService: # For other platforms, check mnist-pytorch example platform: local
267
23.363636
68
yml
nni
nni-master/examples/trials/mnist-batch-tune-keras/mnist-keras.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation # the rights to ...
5,135
36.217391
137
py
nni
nni-master/examples/trials/mnist-distributed-pytorch/config_kubeflow.yml
authorName: default experimentName: example_mnist_distributed_pytorch trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 #choice: local, remote, pai, kubeflow trainingServicePlatform: kubeflow searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolut...
961
22.463415
52
yml
nni
nni-master/examples/trials/mnist-distributed-pytorch/dist_mnist.py
# Copyright 2018 The Kubeflow Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
5,266
29.097143
102
py
nni
nni-master/examples/trials/mnist-distributed-tfv1/config_kubeflow.yml
authorName: default experimentName: example_mnist trialConcurrency: 2 maxExecDuration: 1h maxTrialNum: 20 #choice: local, remote, pai, kubeflow trainingServicePlatform: kubeflow searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution builtinTunerNa...
1,032
21.456522
52
yml
nni
nni-master/examples/trials/mnist-distributed-tfv1/dist_mnist.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
13,585
37.270423
86
py
nni
nni-master/examples/trials/mnist-keras/config.yml
authorName: default experimentName: example_mnist-keras trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 #choice: local, remote, pai trainingServicePlatform: local searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner...
534
23.318182
65
yml
nni
nni-master/examples/trials/mnist-keras/config_pai.yml
authorName: default experimentName: example_mnist-keras trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 #choice: local, remote, pai trainingServicePlatform: pai searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner ...
974
26.857143
65
yml
nni
nni-master/examples/trials/mnist-keras/config_windows.yml
authorName: default experimentName: example_mnist-keras trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 #choice: local, remote, pai trainingServicePlatform: local searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner...
533
23.272727
65
yml
nni
nni-master/examples/trials/mnist-keras/mnist-keras.py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation # the rights to ...
5,167
36.449275
137
py
nni
nni-master/examples/trials/mnist-nested-search-space/config.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialGpuNumber: 0 trialConcurrency: 2 maxTrialNumber: 100 maxExperimentDuration: 1h tuner: name: TPE classArgs: optimize_mode: maximize trainingService: # For other platforms, check mnist-pytorch example platform: local useActiveGpu: false ...
556
36.133333
134
yml
nni
nni-master/examples/trials/mnist-nested-search-space/config_windows.yml
searchSpaceFile: search_space.json trialCommand: python mnist.py trialGpuNumber: 0 trialConcurrency: 2 maxTrialNumber: 100 maxExperimentDuration: 1h tuner: name: TPE classArgs: optimize_mode: maximize trainingService: # For other platforms, check mnist-pytorch example platform: local useActiveGpu: false #...
555
36.066667
134
yml
nni
nni-master/examples/trials/mnist-nested-search-space/mnist.py
''' mnist.py is an example to show: how to use iterative search space to tune architecture network for mnist. ''' from __future__ import absolute_import, division, print_function import logging import math import tempfile import time import argparse import tensorflow as tf from tensorflow.examples.tutorials.mnist imp...
6,134
33.661017
114
py
nni
nni-master/examples/trials/mnist-pbt-tuner-pytorch/config.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialGpuNumber: 1 trialConcurrency: 3 maxTrialNumber: 100 maxExperimentDuration: 2h tuner: name: PBTTuner classArgs: optimize_mode: maximize trainingService: # For other platforms, check mnist-pytorch example platform: local useActiveGpu: fa...
561
36.466667
134
yml
nni
nni-master/examples/trials/mnist-pbt-tuner-pytorch/config_windows.yml
searchSpaceFile: search_space.json trialCommand: python mnist.py trialGpuNumber: 1 trialConcurrency: 3 maxTrialNumber: 100 maxExperimentDuration: 2h tuner: name: PBTTuner classArgs: optimize_mode: maximize trainingService: # For other platforms, check mnist-pytorch example platform: local useActiveGpu: fal...
560
36.4
134
yml
nni
nni-master/examples/trials/mnist-pbt-tuner-pytorch/mnist.py
import argparse import logging import os import nni import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms logger = logging.getLogger('mnist_pbt_tuner_pytorch_AutoML') class Net(nn.Module): def __init__(self): super(Net...
6,658
35.190217
87
py
nni
nni-master/examples/trials/mnist-pytorch/config.yml
# This is the minimal config file for an NNI experiment. # Use "nnictl create --config config.yml" to launch this experiment. # Afterwards, you can check "config_detailed.yml" for more explanation. searchSpaceFile: search_space.json trialCommand: python3 mnist.py # NOTE: change "python3" to "python" if you are using ...
461
29.8
93
yml
nni
nni-master/examples/trials/mnist-pytorch/config_adl.yml
authorName: default experimentName: example_mnist_pytorch trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 nniManagerIp: {replace_with_your_ip} logCollection: http trainingServicePlatform: adl searchSpacePath: search_space.json useAnnotation: false tuner: builtinTunerName: TPE classArgs: optimize_mode: ...
801
26.655172
87
yml
nni
nni-master/examples/trials/mnist-pytorch/config_aml.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialConcurrency: 1 maxTrialNumber: 10 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: platform: aml dockerImage: msranni/nni subscriptionId: ${your subscription ID} resourceGroup: ${your resource group} workspaceNa...
387
23.25
41
yml
nni
nni-master/examples/trials/mnist-pytorch/config_assessor.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py # NOTE: change "python3" to "python" if you are using Windows trialGpuNumber: 0 trialConcurrency: 4 maxTrialNumber: 20 tuner: name: TPE classArgs: optimize_mode: maximize assessor: name: Curvefitting classArgs: epoch_num: 20 threshol...
362
20.352941
93
yml
nni
nni-master/examples/trials/mnist-pytorch/config_detailed.yml
# This example shows more configurable fields comparing to the minimal "config.yml" # You can use "nnictl create --config config_detailed.yml" to launch this experiment. # If you see an error message saying "port 8080 is used", use "nnictl stop --all" to stop previous experiments. experimentName: MNIST # An ...
2,355
51.355556
139
yml
nni
nni-master/examples/trials/mnist-pytorch/config_dlc.yml
# working directory on DSW, please provie FULL path searchSpaceFile: search_space.json # the command on trial runner(or, DLC container), be aware of data_dir trialCommand: python mnist.py --data_dir /root/data/{your_data_dir} trialConcurrency: 1 # NOTE: please provide number <= 3 due to DLC system limit. maxTrialNumbe...
1,273
46.185185
119
yml
nni
nni-master/examples/trials/mnist-pytorch/config_dlc_resource.yml
# working directory on DSW, please provie FULL path searchSpaceFile: search_space.json # the command on trial runner(or, DLC container), be aware of data_dir trialCommand: python mnist.py --data_dir /root/data/{your_data_dir} trialConcurrency: 1 # NOTE: please provide number <= 3 due to DLC system limit. maxTrialNumbe...
1,393
50.62963
143
yml
nni
nni-master/examples/trials/mnist-pytorch/config_frameworkcontroller.yml
authorName: default experimentName: example_mnist_pytorch trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 #choice: local, remote, pai, kubeflow trainingServicePlatform: frameworkcontroller searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evoluti...
1,044
25.125
74
yml
nni
nni-master/examples/trials/mnist-pytorch/config_frameworkcontroller_custom.yml
authorName: default experimentName: example_mnist_pytorch trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 logLevel: trace #choice: local, remote, pai, kubeflow trainingServicePlatform: frameworkcontroller searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random,...
699
22.333333
74
yml
nni
nni-master/examples/trials/mnist-pytorch/config_hybrid.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialGpuNumber: 0 trialConcurrency: 5 maxTrialNumber: 20 tuner: name: TPE classArgs: optimize_mode: maximize # For local, remote, openpai, and aml, NNI can use multiple training services at one time trainingService: - platform: local - platfo...
682
27.458333
89
yml
nni
nni-master/examples/trials/mnist-pytorch/config_kubeflow.yml
authorName: default experimentName: example_dist_pytorch trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 1 #choice: local, remote, pai, kubeflow trainingServicePlatform: kubeflow searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, BatchTune...
728
21.78125
74
yml
nni
nni-master/examples/trials/mnist-pytorch/config_openpai.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialGpuNumber: 0 trialConcurrency: 1 maxTrialNumber: 10 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: platform: openpai host: http://123.123.123.123 username: ${your user name} token: ${your token} dockerImage: m...
558
25.619048
72
yml
nni
nni-master/examples/trials/mnist-pytorch/config_remote.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialGpuNumber: 0 trialConcurrency: 4 maxTrialNumber: 20 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: platform: remote machineList: - host: ${your server's IP or domain name} user: ${your user name} ssh...
864
33.6
165
yml
nni
nni-master/examples/trials/mnist-pytorch/config_tensorboard.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist_tensorboard.py # NOTE: change "python3" to "python" if you are using Windows trialGpuNumber: 0 trialConcurrency: 1 maxTrialNumber: 10 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: platform: local
293
23.5
105
yml
nni
nni-master/examples/trials/mnist-pytorch/config_windows.yml
searchSpaceFile: search_space.json trialCommand: python mnist.py trialGpuNumber: 0 trialConcurrency: 1 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: platform: local
198
17.090909
34
yml
nni
nni-master/examples/trials/mnist-pytorch/fc_template.yml
apiVersion: frameworkcontroller.microsoft.com/v1 kind: Framework metadata: name: pytorchcpu namespace: default spec: executionType: Start retryPolicy: fancyRetryPolicy: true maxRetryCount: 2 taskRoles: - name: worker taskNumber: 1 frameworkAttemptCompletionPolicy: minFailedTaskCount: 1...
1,408
27.18
55
yml
nni
nni-master/examples/trials/mnist-pytorch/mnist.py
""" A deep MNIST classifier using convolutional layers. This file is a modification of the official pytorch mnist example: https://github.com/pytorch/examples/blob/master/mnist/main.py """ import os import argparse import logging import nni import torch import torch.nn as nn import torch.nn.functional as F import tor...
6,077
35.39521
87
py
nni
nni-master/examples/trials/mnist-pytorch/mnist_tensorboard.py
""" A deep MNIST classifier using convolutional layers. This file is a modification of the official pytorch mnist example: https://github.com/pytorch/examples/blob/master/mnist/main.py """ import os import argparse import logging import nni import torch import torch.nn as nn import torch.nn.functional as F import tor...
6,351
35.505747
89
py
nni
nni-master/examples/trials/mnist-sharedstorage/config_azureblob.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialGpuNumber: 0 trialConcurrency: 1 maxTrialNumber: 10 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: platform: remote machineList: - host: ${your server's IP or domain name} user: ${your user name} ssh...
1,806
45.333333
165
yml
nni
nni-master/examples/trials/mnist-sharedstorage/config_nfs.yml
searchSpaceFile: search_space.json trialCommand: python3 mnist.py trialGpuNumber: 0 trialConcurrency: 1 maxTrialNumber: 10 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: platform: remote machineList: - host: ${your server's IP or domain name} user: ${your user name} ssh...
1,344
37.428571
165
yml
nni
nni-master/examples/trials/mnist-sharedstorage/mnist.py
""" A deep MNIST classifier using convolutional layers. This file is a modification of the official pytorch mnist example: https://github.com/pytorch/examples/blob/master/mnist/main.py """ import os import argparse import logging import nni import torch import torch.nn as nn import torch.nn.functional as F import tor...
6,077
35.39521
87
py
nni
nni-master/examples/trials/mnist-tfv1/config.yml
authorName: default experimentName: example_mnist trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 #choice: local, remote, pai trainingServicePlatform: local searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner, GPTu...
531
23.181818
74
yml
nni
nni-master/examples/trials/mnist-tfv1/config_aml.yml
authorName: default experimentName: example_mnist trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 trainingServicePlatform: aml searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner, GPTuner #SMAC (SMAC should be in...
723
26.846154
74
yml
nni
nni-master/examples/trials/mnist-tfv1/config_assessor.yml
authorName: default experimentName: example_mnist trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 50 #choice: local, remote trainingServicePlatform: local searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner, GPTuner ...
658
22.535714
74
yml
nni
nni-master/examples/trials/mnist-tfv1/config_dlts.yml
debug: true authorName: default experimentName: example_mnist trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 #choice: local, remote, pai trainingServicePlatform: dlts searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, BatchTuner, Metis...
950
26.171429
81
yml
nni
nni-master/examples/trials/mnist-tfv1/config_frameworkcontroller.yml
authorName: default experimentName: example_mnist trialConcurrency: 1 maxExecDuration: 1h maxTrialNum: 10 #choice: local, remote, pai, kubeflow trainingServicePlatform: frameworkcontroller searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, Batc...
1,036
24.925
74
yml
nni
nni-master/examples/trials/mnist-tfv1/config_hybrid.yml
authorName: default experimentName: example_mnist trialConcurrency: 3 maxExecDuration: 1h maxTrialNum: 10 trainingServicePlatform: hybrid searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: #choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner, GPTuner #SMAC (SMAC should be...
676
20.15625
74
yml
nni
nni-master/examples/trials/mnist-tfv1/config_hybrid_v2.yml
experimentName: example_mnist trialConcurrency: 3 maxExperimentDuration: 1h maxTrialNumber: 10 searchSpaceFile: search_space.json trialCodeDirectory: . trialCommand: python3 mnist.py trialGpuNumber: 0 tuner: name: TPE classArgs: optimize_mode: maximize trainingService: - platform: local - platform: remote...
493
18.76
54
yml