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 | |
from tqdm import tqdm | |
import matplotlib.pyplot as plt | |
import tensorflow as tf | |
from tensorflow.keras.preprocessing.image import img_to_array, load_img | |
import random | |
def person_to_img(file_names): | |
cam_path_to_img = {} |
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 networkx as nx | |
def girvan_newman(G): | |
G = G.copy() | |
communities = [] | |
# Remoção de auto-loops (u == v ∀ (u, v) ∈ E) | |
G.remove_edges_from(nx.selfloop_edges(G)) | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Começamos importando alguns módulos importantes do Keras | |
# para a construção de uma CNN | |
from keras.models import Sequential | |
from keras.layers.convolutional import Conv2D, MaxPooling2D | |
from keras.layers.core import Flatten, Dense, Dropout | |
from keras.preprocessing.image import ImageDataGenerator |
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
# -*- coding: utf-8 -*- | |
# By Allex Lima | |
import socket | |
import struct | |
import pygame | |
HOST = '10.130.10.244' | |
PORT = 5000 |
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
# -*- coding: utf-8 -*- | |
# By Allex Lima | |
import socket | |
import struct | |
HOST = '' | |
PORT = 5000 | |
print("Server online!") |
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
//Rede Perceptron Multicamada para detectar bananas e laranjas a partir de acidez, fósforo e cálcio | |
//Exercício livro SILVA, I. N. D., Spatti, H. D., & Flauzino, R. A. (2010). Redes Neurais Artificiais, Curso prático para engenharia e ciências aplicadas/Ivan Nunes da Silva. | |
//Base teórica: Artero Cap. V e Haykin 2ª Ed, Cap 1 e 2 | |
//Allex Lima, Jan. 2015 | |
#include <iostream> | |
using namespace std; | |
float net(float *entrada, float *peso){ //Associador Entradas Vs Pesos sinápticos |