This file contains hidden or 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
| import numpy as np | |
| import pandas as pd | |
| from sklearn.model_selection import GridSearchCV, train_test_split | |
| from sklearn.metrics import roc_auc_score, precision_score, recall_score, f1_score, accuracy_score | |
| import torch | |
| from torch import nn, tensor, optim | |
| from skorch import NeuralNetClassifier | |
| def get_data(): |
This file contains hidden or 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
| from time import sleep | |
| import signal | |
| import multiprocessing as mp | |
| _SIGTERM = None | |
| def sigterm_handler(signum, frame): | |
| global _SIGTERM |
This file contains hidden or 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
| from decimal import Decimal | |
| from fractions import Fraction | |
| def muller_recurrence(y, z): | |
| return 108 - ((815-1500/z)/y) | |
| N = 25 |
This file contains hidden or 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
| from urllib.parse import quote, urlencode, ParseResult as Url | |
| Url.__str__ = Url.geturl | |
| bucket_name = 'something_with space' | |
| file_name = 'data.txt' | |
| url = Url( | |
| scheme='https', |
This file contains hidden or 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
| from array import array | |
| from pympler.asizeof import asizeof | |
| SIZE = 1000 | |
| the_array = array('i') | |
| the_list = [] | |
| for_tuple = [] |
OlderNewer