This file contains 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 sklearn.model_selection import cross_val_score | |
import Numpy as np |
This file contains 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
kfolds = 5 | |
scores = cross_val_score(modelo, x, Y, cv = kfolds, scoring = "accuracy") | |
print("Resultado dos k testes", scores) | |
print("Média dos testes", scores.mean()) | |
print("Desvio Padrão dos testes", scores.std()) |
This file contains 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 asyncio | |
import math | |
import re | |
from collections import defaultdict | |
from datetime import datetime, timedelta | |
from typing import Callable, Dict, List, Optional, Union | |
class BasicDBConnector: | |