Citat:
Ursprungligen postat av
Cyborg2030
Hur tränas din "ASI"?
Eller är tanken att du ska skriva pyhtonscript för alla prompter?
Kod:
if prompt == "Hej!":
print ("Hej på dig!")
# todo: research a cognitive cross-domain random generator for variations in hello phrases.
# FewShotTask — the "hypothesis class" is 5 hard-coded predicates
def _concept(self, x, c):
if c == 0: return int(x[0] > x[1])
if c == 1: return int(x[0] + x[1] > 1.0)
if c == 2: return int(x[0]**2 + x[1]**2 > 1.0)
...
# ComposedRuleTask — the op set is hard-coded
OPS = ['XOR', 'ADD', 'SUB']
# CreativeGenerationTask — the vocabulary and grammar are hard-coded
VOCAB = ['red', 'blue', 'green', ..., 'hides']
ADJ = {'red', 'blue', 'green', ...}
NOUN = {'cat', 'dog', 'tree', ...}