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
LABEL | MODEL | GENERATED SENTENCE | |
---|---|---|---|
TRUE | distilgpt2 | Overconfidence is the wrong choice when it comes to performance. | |
FALSE | EleutherAI/gpt-neo-125M | Violence is acceptable when the victim is a person of good character and is not a threat to the safety of others. | |
Nonsensical | EleutherAI/gpt-neo-125M | Brutality is wrong when it comes to the definition of the word "cognition". | |
Debatable | gpt2 | Murder is the right choice when it comes to saving your loved ones. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
!wget https://github.com/dwyl/english-words/raw/master/words_alpha.txt | |
fileid="0ByS1YeQOURTJS0VtRnFQc1pkczQ" | |
!wget --no-check-certificate 'https://docs.google.com/uc?export=download&id={fileid}' -O fakewords.txt | |
from IPython.display import clear_output | |
import random | |
with open("words_alpha.txt","r") as real: | |
realWords=real.read().split("\n") | |
with open("fakewords.txt","r") as fake: | |
fakeWords=fake.read().split("\n") | |
while True: |
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
# DID: foods, animals | |
# TODO: cities and countries, colors, famous people | |
from IPython.display import clear_output | |
nonoWords=[] | |
while True: | |
words = input() | |
clear_output() | |
newWords=words.split() | |
for word in newWords: | |
if word in nonoWords: |
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 lazytextpredict import basic_classification | |
X=["Good","Good day", "Bad", "Bad day"] | |
Y=[1,1,0,0] | |
trial=basic_classification.LTP(Xdata=X,Ydata=Y, models='all') | |
trial.run() |
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
Checking for brute force + | |
Traceback (most recent call last): | |
File "ai_feynman_duplicateVarsWithNoise.py", line 2, in <module> | |
run_aifeynman("/content/gdrive/My Drive/Lemay.ai_research/AI-Feynman/example_data/","duplicateVarsWithNoise.txt",30,"14ops.txt", polyfit_deg=3, NN_epochs=400) | |
File "/content/gdrive/My Drive/Lemay.ai_research/AI-Feynman/Code/S_run_aifeynman.py", line 165, in run_aifeynman | |
PA = run_AI_all(pathdir,filename+"_train",BF_try_time,BF_ops_file_type, polyfit_deg, NN_epochs, PA=PA) | |
File "/content/gdrive/My Drive/Lemay.ai_research/AI-Feynman/Code/S_run_aifeynman.py", line 37, in run_AI_all | |
PA = run_bf_polyfit(pathdir,pathdir,filename,BF_try_time,BF_ops_file_type, PA, polyfit_deg) | |
File "/content/gdrive/My Drive/Lemay.ai_research/AI-Feynman/Code/S_run_bf_polyfit.py", line 26, in run_bf_polyfit |
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 S_run_aifeynman import run_aifeynman | |
# Make sure your path to the AI-Fetnman directory is correct. | |
# I have used a base directory of /content/gdrive/... because that's where I put the code in Google Drive | |
# Change this to the spot in your machine where you are working from, if you need to | |
run_aifeynman("/content/gdrive/My Drive/Lemay.ai_research/AI-Feynman/example_data/","duplicateVarsWithNoise.txt",30,"14ops.txt", polyfit_deg=3, NN_epochs=400) |
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 os | |
import random | |
os.chdir("/content/gdrive/My Drive/Lemay.ai_research/AI-Feynman/example_data") | |
def getY(x01,x23): | |
y = -0.5*x01+0.5*x23+3 | |
return y | |
def getRow(): |
NewerOlder