Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

216
Visualizações
Amazon SageMake:- Unable to allocate 201. MiB for an array with shape (33600, 784) and data type float64

I am building SVM model for MNIST Digit recognition in Amazon Sagemaker and I am getting below error.

MemoryError: Unable to allocate 201. MiB for an array with shape (33600, 784) and data type float64

Below is my code:-

# creating a KFold object with 5 splits 
folds = KFold(n_splits = 5, shuffle = True, random_state = 101)

# specify range of hyperparameters
# Set the parameters by cross-validation
hyper_params = [ {'gamma': [1e-1, 1e-2, 1e-3, 1e-4],
                  'C': [1e-3, 1e-2, 1e-1, 1, 10, 100]}]


# specify modelb
model = SVC(kernel="rbf")

# set up GridSearchCV()
model_cv = GridSearchCV(estimator = model, 
                     param_grid = hyper_params, 
                     scoring= 'accuracy', 
                     cv = folds, 
                     verbose = 1,
                     return_train_score=True)      

# fit the model
model_cv.fit(normalized_X_train, y_train)  

print("The best parameters are %s with a score of %0.2f"
    % (model_cv.best_params_, model_cv.best_score_))
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda