- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
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
| #Pkg.add("Primes") | |
| using Primes | |
| function genBigPrime() | |
| prime = 0 | |
| while prime == 0 | |
| #possiblePrime = rand(BigInt(1e+50):BigInt(1e+100)) | |
| possiblePrime = Int(rand(1e+2:1e+4)) | |
| if isprime(possiblePrime) | |
| prime = possiblePrime |
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
| addprocs(3) | |
| global dim = 2 | |
| ################################################################################ | |
| # preparando a base de dados # | |
| ################################################################################ | |
| lin = 3 # linhas | |
| col = 10000 # colunas | |
| trein = SharedArray{Float64}(lin, col) |
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/python3 | |
| # -*- coding: utf-8 -*- | |
| from urllib.request import urlopen, Request | |
| import json | |
| from sys import argv | |
| from os.path import expanduser as expand | |
| data = { | |
| "description" : "", | |
| "public" : True, |
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 -*- | |
| """ | |
| @author: lincoln | |
| fontes: | |
| http://scikit-learn.org/stable/auto_examples/svm/plot_rbf_parameters.html | |
| http://scikit-learn.org/stable/auto_examples/classification/plot_classifier_comparison.html | |
| obs.: se for exibir as imagens no jupyter notebook ou qtconsole |
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
| l1 = [1,2] | |
| l2 = l1 | |
| l1.append(3) | |
| l2 | |
| def teste(lista): | |
| for i in range(4, 10): | |
| lista.append(i) | |
| teste(l1) |
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
| ################################################################################ | |
| # | |
| # leituras recomendadas (e que tambem precisei para escrever esse script): | |
| # * https://matheusfacure.github.io/2017/05/15/deep-ff-ann-pytorch/ | |
| # * http://deeplearningbook.com.br/funcao-de-ativacao/ | |
| # | |
| ################################################################################ | |
| import torch | |
| from torch import autograd, nn |