Skip to content

Instantly share code, notes, and snippets.

View SilvaEmerson's full-sized avatar
🏠
Working from home

Émerson Silva SilvaEmerson

🏠
Working from home
View GitHub Profile
@SilvaEmerson
SilvaEmerson / Asteroids_impacts_analysis.ipynb
Last active September 25, 2017 11:32
Data analysis from the data of probably impacts of asteroids with earth, source: NASA(https://www.kaggle.com/nasa/asteroid-impacts/data)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SilvaEmerson
SilvaEmerson / Bolsa_emerg.py
Last active October 2, 2017 10:36
Script de consulta à situação de pagamento com relação à um prazo dado e o CPF do requisitante
try:
import requests
except:
print("Por favor instale o módulo Requests")
try:
from bs4 import BeautifulSoup
except:
print("Por favor instale o módulo BeutifulSoup:\nhttps://www.crummy.com/software/BeautifulSoup/bs4/download/")
print('Prazo deve ser entre 30 dias')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import tensorflow as tf
import numpy as np
X_train, X_test = np.load('X_train.npy'), np.load('X_test.npy')
Y_train, Y_test = np.load('Y_train.npy'), np.load('Y_test.npy')
Y_train, Y_test = tf.keras.utils.to_categorical(Y_train, num_classes=4), tf.keras.utils.to_categorical(Y_test, num_classes=4)
features_num = len(X_train[0])
l1 = 50
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.