Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gustavoschmoeller
Last active January 11, 2021 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavoschmoeller/5ef4b00d88f43ab9577d064938ce0161 to your computer and use it in GitHub Desktop.
Save gustavoschmoeller/5ef4b00d88f43ab9577d064938ce0161 to your computer and use it in GitHub Desktop.
Importando
# Importando as bibliotecas
import numpy as np
import pandas as pd
# Visualização dos dados
import seaborn as sns
import matplotlib.pyplot as plt
import plotly.offline as py
import plotly.graph_objs as go
import plotly.io as pio
pio.templates.default = "plotly_white"
# Machine learning
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble import RandomForestRegressor
from sklearn import metrics
# Melhores parâmetros
from sklearn.model_selection import GridSearchCV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment