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 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 nltk.corpus import wordnet | |
import threading | |
from queue import Queue | |
from datetime import datetime | |
import time | |
class WordSearch: | |
def __init__(self): | |
self.combo = set() |
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 numpy as np | |
time_taken_for_one_weight = 0.04 | |
weights_to_try = 1000 | |
weights_in_net = 8 # for 1 layer | |
one_year = 3600*24*365 | |
years_to_train = time_taken_for_one_weight*(weights_to_try**weights_in_net)/one_year | |
print('{:,}'.format(years_to_train)) |
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 gym | |
import random | |
import numpy as np | |
import tflearn | |
from tflearn.layers.core import input_data, dropout, fully_connected | |
from tflearn.layers.estimator import regression | |
from statistics import mean, median | |
from collections import Counter | |
LR = 1e-3 |
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
### PROGRAMMING FIBONACCI NUMBERS FROM BEGINNER TO EXPERT | |
### Method: 1 | |
print('Method: 1') | |
def fibonacci(no): | |
series = [1,1] | |
for _ in range(1, no-1): | |
series.append(series[-1] + series[-2]) | |
return series |
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
""" | |
@author Victor I. Afolabi | |
A.I. Engineer & Software developer | |
[email protected] | |
Created on 25 August, 2017 @ 8:15 PM. | |
Copyright © 2017. victor. All rights reserved. | |
""" | |
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
""" | |
@author Victor I. Afolabi | |
A.I. Engineer & Software developer | |
[email protected] | |
Created on 02 November, 2017 @ 11:24 PM. | |
Copyright © 2017. Victor. All rights reserved. | |
""" | |
import datetime as dt |
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
""" | |
@author Victor I. Afolabi | |
A.I. Engineer & Software developer | |
[email protected] | |
Created on 28 October, 2017 @ 9:55 PM. | |
Copyright © 2017. Victor. All rights reserved. | |
""" |
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
# Shape = 2x3 | |
a = [ | |
[1, 2, 3], | |
[4, 5, 6] | |
] | |
# Shape = 2x3x2 | |
b = [ | |
[[1, 1], [2, 2], [3, 3]], | |
[[4, 4], [5, 5], [6, 6]] |
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
"""Improved estimation of how many lines of codes are in a project (using recursion) | |
@author | |
Victor I. Afolabi | |
Director of AI, NioCraft, 115Garage. | |
Email: [email protected] | |
GitHub: https://github.com/victor-iyiola | |
@project | |
File: lines-of-code.py |
OlderNewer