This file contains 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 | |
# Copyright 2021, The Facebook AI Research Team and The HuggingFace Inc. team. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains 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 tensorflow as tf | |
import numpy as np | |
epochs = 10000 | |
batch_size = 1500 | |
d = 2 | |
enc_1_hidden_units = 128 | |
enc_2_hidden_units = 64 | |
mean_hidden_units = std_hidden_units = 2 | |
dec_1_hidden_units = 64 |
This file contains 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 -*- | |
from random import random,choice | |
import networkx as nx | |
import matplotlib.pyplot as plt | |
import time | |
def watts(G,B): |
This file contains 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 -*- | |
from random import randint,random | |
import networkx as nx | |
import matplotlib.pyplot as plt | |
import time | |
# http://stackoverflow.com/questions/479236/how-do-i-simulate-biased-die-in-python # | |
def roll(probs): |
This file contains 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 -*- | |
import numpy as np | |
from sklearn.datasets import load_iris | |
class SOM: | |
def __init__(self,X,it,size_x,size_y,min_w=0,max_w=1,a=0.01): | |
This file contains 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 -*- | |
# | |
# A5.py | |
# | |
# Author: overxfl0w13 | |
# | |
def header(): | |
print """ |
This file contains 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 -*- | |
# | |
# DES.py | |
# | |
# Author: Overxfl0w13 | |
import binascii |
This file contains 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 -*- | |
# | |
# minimax.py | |
# | |
# Copyright 2015 Overxflow13 | |
# | |
class Node: | |
This file contains 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 -*- | |
# genetico_logica.py | |
# Author: Overxfl0w13 # | |
from random import shuffle,randint,uniform | |
#from premisas_avenida import PREMISAS | |
from premisas_einstein import PREMISAS | |
MAX_PREMISES = 0 |
This file contains 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
/* | |
* rafflecopter.c | |
* Overxfl0w13 | |
* 2015 | |
*/ | |
#include <windows.h> | |
#include <time.h> | |
#include <stdlib.h> | |
#include <stdio.h> |
NewerOlder