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
function fish_prompt | |
################################################################### | |
# cuidando das variaveis de ambiente # | |
################################################################### | |
set -g VIRTUAL_ENV_DISABLE_PROMPT true # para nao aparecer a notificacao padrao do venv e do virtualenv | |
set -g __fish_git_prompt_show_informative_status 1 | |
set -g __fish_git_prompt_hide_untrackedfiles 1 |
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
""" | |
Funcionamento: | |
empilha os operadores e calcula os valores | |
primeira parte: | |
criacao de funcoes que executem as operacoes e seu acoplamento a um | |
dicionario que servira de forma similar a um switch | |
segunda parte: | |
funcao que implementara a notacao polonesa se valendo de recursividade, das |
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 string import ascii_uppercase as ascii_up | |
from random import choice, uniform | |
from copy import deepcopy | |
class Particle(object): | |
def __init__(self, dim, limit_max, limit_min): | |
self._position = [ord(choice(ascii_up)) for _ in range(dim)] | |
self._best_posit = self._position[::] | |
self._fitness = None | |
self._best_fitness = None |
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 | |
class Perceptron(object): | |
''' | |
Implementacao do perceptron | |
''' | |
def __init__(self, dimensoes): | |
''' | |
:dimensoes: list com o nome das variaveis de entrada | |
''' | |
for dim in dimensoes: |
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.
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
""" | |
dependências: | |
* python2 | |
* opencv | |
* numpy | |
* matplotlib | |
""" | |
import cv2 | |
import numpy as np |
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.
OlderNewer