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 neat | |
import pickle | |
import os | |
import operator | |
from matplotlib import pyplot as plt | |
import pygame | |
import random | |
import numpy as np |
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
from selenium import webdriver | |
from time import time | |
from bs4 import BeautifulSoup | |
import requests | |
from unidecode import unidecode | |
start_time = time() | |
def current_time(): |
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 random | |
def generate_items(n, valor_max, peso_max): | |
items = list() | |
for i in range(n): | |
item = list() | |
item.append(random.randint(1, valor_max)) | |
item.append(random.randint(1, peso_max)) | |
items.append(item) |