repo stringlengths 1 99 | file stringlengths 13 215 | code stringlengths 12 59.2M | file_length int64 12 59.2M | avg_line_length float64 3.82 1.48M | max_line_length int64 12 2.51M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted/_network.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 19,260 | 33.272242 | 116 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted/_estimator.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 12,253 | 37.656151 | 100 | py |
rankpredictor | rankpredictor-master/src/indycar/model/mlp-savedata/_network.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 7,086 | 31.213636 | 81 | py |
rankpredictor | rankpredictor-master/src/indycar/model/mlp-savedata/_estimator.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 7,518 | 36.78392 | 108 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model.v2/lstm_save.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,098 | 36.363158 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model.v2/lstm.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,229 | 36.076923 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model.v2/layers.py | import tensorflow as tf
from keras import backend as K
from keras.initializers import glorot_normal
from keras.layers import Layer
class GaussianLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
self.kernel_1, self.kernel_2, self.bias_1, self.bias_2 = [], [], [],... | 4,517 | 38.982301 | 81 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model.v0/lstm.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer
from .loss import gaussian_likelihood
from keras.layers import Input, Dense, Input
from keras.models import Model
from keras.layers... | 5,812 | 37.243421 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model.v0/layers.py | from keras import backend as K
from keras.initializers import glorot_normal
from keras.layers import Layer
class GaussianLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
self.kernel_1, self.kernel_2, self.bias_1, self.bias_2 = [], [], [], []
super(Gaussi... | 1,954 | 44.465116 | 85 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model.v1/lstm_save.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,098 | 36.363158 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model.v1/lstm.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,181 | 36.020619 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model.v1/layers.py | import tensorflow as tf
from keras import backend as K
from keras.initializers import glorot_normal
from keras.layers import Layer
class GaussianLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
self.kernel_1, self.kernel_2, self.bias_1, self.bias_2 = [], [], [],... | 4,517 | 38.982301 | 81 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model_eager/lstm_save.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,142 | 36.594737 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model_eager/lstm.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 9,488 | 36.654762 | 119 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model_eager/layers.py | import tensorflow as tf
from tensorflow.keras import backend as K
from tensorflow.keras.initializers import glorot_normal
from tensorflow.keras.layers import Layer
class GaussianLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
self.kernel_1, self.kernel_2, self.... | 5,125 | 38.430769 | 81 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model_eager/lstm_ve.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 8,827 | 37.21645 | 107 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model/lstm_save.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,142 | 36.594737 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model/lstm.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,372 | 36.426396 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartfve/model/layers.py | import tensorflow as tf
from tensorflow.keras import backend as K
from tensorflow.keras.initializers import glorot_normal
from tensorflow.keras.layers import Layer
class GaussianLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
self.kernel_1, self.kernel_2, self.... | 4,550 | 39.274336 | 81 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepar-weighted/_network.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 23,038 | 34.886293 | 116 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepar-weighted/_estimator.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 13,001 | 37.353982 | 94 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deeparsavedata/_network.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 22,835 | 34.68125 | 116 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deeparsavedata/_estimator.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 12,805 | 36.775811 | 94 | py |
rankpredictor | rankpredictor-master/src/indycar/model/mlp-original/_network.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 6,573 | 32.20202 | 81 | py |
rankpredictor | rankpredictor-master/src/indycar/model/mlp-original/_estimator.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 7,518 | 36.78392 | 108 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer/trans_encoder.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 3,242 | 33.5 | 118 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer/layers.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 15,991 | 27.506239 | 112 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer/trans_decoder.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 4,259 | 32.543307 | 118 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer/_network.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 16,590 | 33.564583 | 116 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer/_estimator.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 12,230 | 37.583596 | 100 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model.v2/lstm_save.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,098 | 36.363158 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model.v2/lstm.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,229 | 36.076923 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model.v2/layers.py | import tensorflow as tf
from keras import backend as K
from keras.initializers import glorot_normal
from keras.layers import Layer
class GaussianLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
self.kernel_1, self.kernel_2, self.bias_1, self.bias_2 = [], [], [],... | 4,517 | 38.982301 | 81 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model.v0/lstm.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer
from .loss import gaussian_likelihood
from keras.layers import Input, Dense, Input
from keras.models import Model
from keras.layers... | 5,812 | 37.243421 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model.v0/layers.py | from keras import backend as K
from keras.initializers import glorot_normal
from keras.layers import Layer
class GaussianLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
self.kernel_1, self.kernel_2, self.bias_1, self.bias_2 = [], [], [], []
super(Gaussi... | 1,954 | 44.465116 | 85 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model.v1/lstm_save.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,098 | 36.363158 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model.v1/lstm.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,181 | 36.020619 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model.v1/layers.py | import tensorflow as tf
from keras import backend as K
from keras.initializers import glorot_normal
from keras.layers import Layer
class GaussianLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
self.kernel_1, self.kernel_2, self.bias_1, self.bias_2 = [], [], [],... | 4,517 | 38.982301 | 81 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model/lstm_save.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,098 | 36.363158 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model/lstm.py | #from deepar.model import NNModel
#from deepar.model.layers import GaussianLayer
#from deepar.model.loss import gaussian_likelihood
from . import NNModel
from .layers import GaussianLayer, StudentTLayer
from .loss import gaussian_likelihood, gaussian_sampler
from .loss import studentt_likelihood, studentt_sampler
from... | 7,229 | 36.076923 | 104 | py |
rankpredictor | rankpredictor-master/src/indycar/model/deepartf/model/layers.py | import tensorflow as tf
from keras import backend as K
from keras.initializers import glorot_normal
from keras.layers import Layer
class GaussianLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.output_dim = output_dim
self.kernel_1, self.kernel_2, self.bias_1, self.bias_2 = [], [], [],... | 4,517 | 38.982301 | 81 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-fullloss-masked/trans_encoder.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 3,242 | 33.5 | 118 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-fullloss-masked/layers.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 15,991 | 27.506239 | 112 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-fullloss-masked/trans_decoder.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 4,259 | 32.543307 | 118 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-fullloss-masked/_network.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 19,508 | 33.106643 | 116 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-fullloss-masked/_estimator.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 12,478 | 37.754658 | 100 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-masked/trans_encoder.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 3,242 | 33.5 | 118 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-masked/layers.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 15,991 | 27.506239 | 112 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-masked/trans_decoder.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 4,259 | 32.543307 | 118 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-masked/_network.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 19,290 | 33.325623 | 116 | py |
rankpredictor | rankpredictor-master/src/indycar/model/transformer-weighted-masked/_estimator.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 12,289 | 37.769716 | 100 | py |
rankpredictor | rankpredictor-master/run/9.DeepModels/experiment/src/deepar_simindy500.py | #!/usr/bin/env python
# coding: utf-8
# # DeepAR on simulation indy500 laptime dataset
#
# laptime dataset
# <eventid, carids, laptime (totalcars x totallaps)>
# Third-party imports
import mxnet as mx
from mxnet import gluon
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import json
import lo... | 5,656 | 30.603352 | 118 | py |
rankpredictor | rankpredictor-master/run/9.DeepModels/experiment/src/prophet_laptime.py | import mxnet as mx
from mxnet import gluon
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import json
import pickle
with open('sim-indy500-laptime-2018.pickle', 'rb') as f:
# The protocol version used is detected automatically, so we do not
# have to specify it.
laptime_data = pickl... | 1,440 | 32.511628 | 109 | py |
rankpredictor | rankpredictor-master/run/9.DeepModels/experiment/src/deepmodels_indy.py | #!/usr/bin/env python
# coding: utf-8
"""
Deep Models on the Indy dataset
dataset:
laptime&rank dataset <eventid, carids, laptime (totalcars x totallaps), rank (totalcars x totallaps)>; filled with NaN
deep models:
deepAR, deepstate, deepFactor
"""
# # DeepAR on simulation indy500 laptime dataset
#
# laptime da... | 8,731 | 32.328244 | 130 | py |
rankpredictor | rankpredictor-master/run/9.DeepModels/experiment/src/deepfactor_simindy500.py | #!/usr/bin/env python
# coding: utf-8
# # DeepAR on simulation indy500 laptime dataset
#
# laptime dataset
# <eventid, carids, laptime (totalcars x totallaps)>
# Third-party imports
import mxnet as mx
from mxnet import gluon
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import json
import lo... | 6,554 | 31.939698 | 118 | py |
rankpredictor | rankpredictor-master/run/9.DeepModels/experiment/src/deepmodels_simindy500.py | #!/usr/bin/env python
# coding: utf-8
"""
Deep Models on the Indy500 simulation dataset
simulation dataset:
laptime&rank dataset <eventid, carids, laptime (totalcars x totallaps), rank (totalcars x totallaps)>; filled with NaN
deep models:
deepAR, deepstate, deepFactor
"""
# # DeepAR on simulation indy500 laptim... | 8,467 | 32.470356 | 118 | py |
rankpredictor | rankpredictor-master/run/9.DeepModels/experiment/src/prophet_telemetry_tsgluon.py | #!/usr/bin/env python
# coding: utf-8
# # Prophet on telemetry ts dataset
#
# refer to telemetry_dataset_gluonts
# In[1]:
# Third-party imports
import mxnet as mx
from mxnet import gluon
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import json
import os,sys
from optparse import OptionPars... | 6,146 | 22.551724 | 118 | py |
rankpredictor | rankpredictor-master/run/9.DeepModels/experiment/src/deepar_laptime-rank.py | #!/usr/bin/env python
# coding: utf-8
# # DeepAR on laptime&rank dataset
#
# laptime&rank dataset
# <eventid, carids, laptime (totalcars x totallaps), rank (totalcars x totallaps)>; filled with NaN
# In[1]:
# Third-party imports
import mxnet as mx
from mxnet import gluon
import numpy as np
import pandas as pd
impo... | 9,323 | 30.714286 | 428 | py |
rankpredictor | rankpredictor-master/run/9.DeepModels/experiment/src/prophet_laptime-rank-v2.py | #!/usr/bin/env python
# coding: utf-8
# # Prophet on laptime&rank dataset
#
# https://gluon-ts.mxnet.io/api/gluonts/gluonts.model.prophet.html
#
# laptime&rank dataset
# <eventid, carids, laptime (totalcars x totallaps), rank (totalcars x totallaps)>; filled with NaN
# In[1]:
# Third-party imports
get_ipython().r... | 9,548 | 25.090164 | 121 | py |
rankpredictor | rankpredictor-master/run/9.DeepModels/experiment/src/deepmodels_indy_gluontsdb.py | #!/usr/bin/env python
# coding: utf-8
"""
Deep Models on the Indy dataset
dataset:
freq, prediction_length, cardinality,train_ds, test_ds
deep models:
deepAR, deepstate, deepFactor
"""
# # DeepAR on simulation indy500 laptime dataset
#
# laptime dataset
# <eventid, carids, laptime (totalcars x totallaps)>
# Thi... | 7,519 | 30.864407 | 123 | py |
rankpredictor | rankpredictor-master/run/17.StintSimulator/notebook/stint-test-strategy.py | #!/usr/bin/env python
# coding: utf-8
# In[3]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import mxnet as mx
from mxnet import gluon
import pickle
import json
import random
import inspect
from scipy import stats
from sklearn.metrics import mean_squared_error
from gluonts.dat... | 4,098 | 27.866197 | 129 | py |
rankpredictor | rankpredictor-master/run/17.StintSimulator/notebook/stint-test.py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import ipdb
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import mxnet as mx
from mxnet import gluon
import pickle
import json
import random
import inspect
from scipy import stats
from sklearn.metrics import mean_squared_error
from... | 2,075 | 28.657143 | 84 | py |
rankpredictor | rankpredictor-master/run/18.FinalTest/notebook/stint-test-strategy.py | #!/usr/bin/env python
# coding: utf-8
# In[3]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import mxnet as mx
from mxnet import gluon
import pickle
import json
import random
import inspect
from scipy import stats
from sklearn.metrics import mean_squared_error
from gluonts.dat... | 4,098 | 27.866197 | 129 | py |
rankpredictor | rankpredictor-master/run/18.FinalTest/notebook/stint-test.py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import ipdb
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import mxnet as mx
from mxnet import gluon
import pickle
import json
import random
import inspect
from scipy import stats
from sklearn.metrics import mean_squared_error
from... | 2,075 | 28.657143 | 84 | py |
rankpredictor | rankpredictor-master/run/23.experiments/notebook/RankNet-QuickTest-Slim.py | #!/usr/bin/env python
# coding: utf-8
# ## QuickTest Slim
#
# based on : RankNet-QuickTest-Joint
#
# makedb laptime
# makedb gluonts
# train model
# evaluate model
#
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import random
import mxnet as mx
from mxnet impo... | 38,207 | 36.203505 | 185 | py |
rankpredictor | rankpredictor-master/run/22.PaperFinal/notebook/RankNet-QuickTest-Slim-beforemultidataset.py | #!/usr/bin/env python
# coding: utf-8
# ## QuickTest Slim
#
# based on : RankNet-QuickTest-Joint
#
# makedb laptime
# makedb gluonts
# train model
# evaluate model
#
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import random
import mxnet as mx
from mxnet impo... | 30,803 | 35.282686 | 185 | py |
rankpredictor | rankpredictor-master/run/22.PaperFinal/notebook/RankNet-QuickTest-BeforeSlim.py | #!/usr/bin/env python
# coding: utf-8
"""
RankNet QuickTest goes through the following steps
makedb laptime
makedb gluonts
train model
evaluate model
draw figures
version 0.4
supported features:
forecast_mode: shortterm, stint
trainmodel : deepAR , deepARW-Oracle, deepAR-multi
... | 122,909 | 32.840859 | 189 | py |
rankpredictor | rankpredictor-master/run/22.PaperFinal/notebook/RankNet-QuickTest-2fmodes.py | #!/usr/bin/env python
# coding: utf-8
# ## QuickTest
#
# makedb laptime
# makedb gluonts
# train model
# evaluate model
#
# In[1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import random
import mxnet as mx
from mxnet import gluon
import pickle
import json
i... | 92,659 | 33.242424 | 182 | py |
rankpredictor | rankpredictor-master/run/22.PaperFinal/notebook/RankNet-QuickTest.py | #!/usr/bin/env python
# coding: utf-8
"""
RankNet QuickTest goes through the following steps
makedb laptime
makedb gluonts
train model
evaluate model
draw figures
version 0.4
supported features:
forecast_mode: shortterm, stint
trainmodel : deepAR , deepARW-Oracle, deepAR-multi
... | 122,909 | 32.840859 | 189 | py |
rankpredictor | rankpredictor-master/run/22.PaperFinal/notebook/RankNet-QuickTest-3fmodes.py | #!/usr/bin/env python
# coding: utf-8
# ## QuickTest
#
# makedb laptime
# makedb gluonts
# train model
# evaluate model
#
# In[ ]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import random
import mxnet as mx
from mxnet import gluon
import pickle
import json
i... | 95,347 | 32.478933 | 189 | py |
rankpredictor | rankpredictor-master/run/22.PaperFinal/notebook/RankNet-QuickTest-beforejoint.py | #!/usr/bin/env python
# coding: utf-8
# ## QuickTest
#
# makedb laptime
# makedb gluonts
# train model
# evaluate model
#
# In[ ]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import random
import mxnet as mx
from mxnet import gluon
import pickle
import json
i... | 105,355 | 32.382763 | 189 | py |
rankpredictor | rankpredictor-master/run/22.PaperFinal/notebook/RankNet-QuickTest-Slim.py | #!/usr/bin/env python
# coding: utf-8
# ## QuickTest Slim
#
# based on : RankNet-QuickTest-Joint
#
# makedb laptime
# makedb gluonts
# train model
# evaluate model
#
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import random
import mxnet as mx
from mxnet impo... | 34,588 | 36.393514 | 185 | py |
rankpredictor | rankpredictor-master/run/19.benchmark/tftrain/opt_testve_eager.py | #!/usr/bin/env python
# coding: utf-8
# ### test deepar tensorflow
from numpy.random import normal
import tqdm
import pandas as pd
from matplotlib import pyplot as plt
import numpy as np
from optparse import OptionParser
import tensorflow as tf
#from indycar.model.deepartf.dataset.time_series import MockTs
from indy... | 4,977 | 33.331034 | 94 | py |
rankpredictor | rankpredictor-master/run/25.sotamodels/notebook/RankNet-QuickTest-Slim.py | #!/usr/bin/env python
# coding: utf-8
# ## QuickTest Slim
#
# based on : RankNet-QuickTest-Joint
#
# makedb laptime
# makedb gluonts
# train model
# evaluate model
#
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import random
import mxnet as mx
from mxnet impo... | 40,631 | 36.345588 | 185 | py |
rankpredictor | rankpredictor-master/run/24.inctrain/RankNet-QuickTest-Slim.py | #!/usr/bin/env python
# coding: utf-8
# ## QuickTest Slim
#
# based on : RankNet-QuickTest-Joint
#
# makedb laptime
# makedb gluonts
# train model
# evaluate model
#
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import random
import mxnet as mx
from mxnet impo... | 39,999 | 36.209302 | 185 | py |
rankpredictor | rankpredictor-master/run/13.FullTest/notebook/laptime2rank-evaluate-fulltest-Copy1.py | #!/usr/bin/env python
# coding: utf-8
# ## Laptime2Rank-evaluate-fulltest-disturbance
#
# based on: Laptime2Rank-evaluate-fulltest
#
# rank prediction by laptime forecasting models
#
# support:
# + train/test split by ratio or event
# + incremental training evaluation(adjust ratio)
# + go beyond curtrack and zerotr... | 55,178 | 35.088293 | 310 | py |
rankpredictor | rankpredictor-master/run/5.DeployModel/predictor/stage_model_prediction.py | #!/usr/bin/env python
# coding: utf-8
# ### stage model prediction interface
#
# A stage, or a stint, is the section of laps between two consecutive pitstops for a car.
# The models predict the change of the ranks for the next stage when a car enters into the pit lane(or from the beginning).
#
# There are two predic... | 8,013 | 25.448845 | 134 | py |
rankpredictor | rankpredictor-master/run/5.DeployModel/predictor-py2/stage_model_prediction.py | #!/usr/bin/env python
# coding: utf-8
# ### stage model prediction interface
#
# A stage, or a stint, is the section of laps between two consecutive pitstops for a car.
# The models predict the change of the ranks for the next stage when a car enters into the pit lane(or from the beginning).
#
# There are two predic... | 7,851 | 25.798635 | 134 | py |
rankpredictor | rankpredictor-master/sub/gluonts-0.5.2/model/forecast.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 20,222 | 29.456325 | 99 | py |
rankpredictor | rankpredictor-master/sub/gluonts/monkey_patch/monkey_patch_property_metaclass.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 958 | 32.068966 | 75 | py |
rankpredictor | rankpredictor-master/sub/gluonts/trainer/_base_raw.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 13,036 | 37.344118 | 118 | py |
rankpredictor | rankpredictor-master/sub/gluonts/trainer/learning_rate_scheduler-raw.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 4,306 | 33.456 | 87 | py |
rankpredictor | rankpredictor-master/sub/gluonts/trainer/learning_rate_scheduler.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 4,399 | 33.375 | 87 | py |
rankpredictor | rankpredictor-master/sub/gluonts/trainer/_base.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 13,185 | 37.443149 | 118 | py |
rankpredictor | rankpredictor-master/sub/gluonts/block/scaler.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 6,382 | 30.756219 | 92 | py |
rankpredictor | rankpredictor-master/sub/gluonts/block/cnn.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 5,706 | 27.252475 | 83 | py |
rankpredictor | rankpredictor-master/sub/gluonts/block/mlp.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 1,977 | 26.859155 | 79 | py |
rankpredictor | rankpredictor-master/sub/gluonts/block/encoder.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 13,120 | 26.507338 | 118 | py |
rankpredictor | rankpredictor-master/sub/gluonts/block/enc2dec.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 2,994 | 25.741071 | 77 | py |
rankpredictor | rankpredictor-master/sub/gluonts/block/decoder.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 5,630 | 26.876238 | 79 | py |
rankpredictor | rankpredictor-master/sub/gluonts/block/quantile_output.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 6,189 | 26.149123 | 79 | py |
rankpredictor | rankpredictor-master/sub/gluonts/block/rnn.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 3,100 | 27.981308 | 85 | py |
rankpredictor | rankpredictor-master/sub/gluonts/block/feature.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 9,087 | 34.224806 | 119 | py |
rankpredictor | rankpredictor-master/sub/gluonts/core/serde.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 15,427 | 25.327645 | 78 | py |
rankpredictor | rankpredictor-master/sub/gluonts/core/component.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 16,390 | 28.910584 | 86 | py |
rankpredictor | rankpredictor-master/sub/gluonts/dataset/loader.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 8,580 | 30.899628 | 79 | py |
rankpredictor | rankpredictor-master/sub/gluonts/distribution/transformed_distribution.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 4,693 | 30.503356 | 79 | py |
rankpredictor | rankpredictor-master/sub/gluonts/distribution/lowrank_multivariate_gaussian.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 9,527 | 25.393352 | 103 | py |
rankpredictor | rankpredictor-master/sub/gluonts/distribution/binned.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 7,830 | 30.963265 | 116 | py |
rankpredictor | rankpredictor-master/sub/gluonts/distribution/distribution.py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 8,844 | 28.095395 | 81 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.