Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

215
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda