Code copied from https://towardsdatascience.com/simple-machine-learning-model-in-python-in-5-lines-of-code-fe03d72e78c6
from sklearn.linear_model import LinearRegression
from random import randint
#Training Dataset
TRAIN_SET_LIMIT = 1000
TRAIN_SET_COUNT = 100
TRAIN_INPUT = list()
TRAIN_OUTPUT = list()
for i in range(TRAIN_SET_COUNT):
a = randint(0, TRAIN_SET_LIMIT)
b = randint(0, TRAIN_SET_LIMIT)
c = randint(0, TRAIN_SET_LIMIT)
op = a + (2*b) + (3*c)
TRAIN_INPUT.append([a, b, c])
TRAIN_OUTPUT.append(op)
#Train the Model
predictor = LinearRegression(n_jobs=-1)
predictor.fit(X=TRAIN_INPUT, y=TRAIN_OUTPUT)
#Send test data to the model
X_TEST = [[10, 20, 30]]
outcome = predictor.predict(X=X_TEST)
coefficients = predictor.coef_
print('Outcome : {}\nCoefficients : {}'.format(outcome, coefficients))
Nothing fancy, just a personal log with a built in search function so I can recall what is easily forgotten.
Sunday, August 13, 2023
Wednesday, August 2, 2023
Linux - Get public IP address
dig +short txt ch whoami.cloudflare @1.0.0.1
dig -6 TXT +short o-o.myaddr.l.google.com @ns1.google.com
dig +short myip.opendns.com @resolver1.opendns.com
dig -6 TXT +short o-o.myaddr.l.google.com @ns1.google.com
dig +short myip.opendns.com @resolver1.opendns.com
Monday, July 31, 2023
Friday, July 28, 2023
Star Wars Jedi: Fallen Order - not launching
Navigate to C:\Program Files (x86)\Steam\steamapps\common\Jedi Fallen Order\SwGame\Binaries\Win64
Double Click SwGame-Win64-Shipping
The default is starwarsjedifallenorder, which requires the buggy EA app
Double Click SwGame-Win64-Shipping
The default is starwarsjedifallenorder, which requires the buggy EA app
Sunday, June 25, 2023
W.A.R. Heads Up Display Opened at Kremlin
The Widespread Augmented Reality (W.A.R.) heads up display on Google Play was opened at the Kremlin as evidenced by the this automated system generated geotag.
Friday, May 26, 2023
Tuesday, May 2, 2023
How I know Google is Watching My App
My app is Widespread Augmented Reality on Google Play: https://play.google.com/store/apps/details?id=org.warmixare2
Is is a personal heads up display for geospatial social networking. Your handle is anonymous and disposable. I use it to mark my travels locally, nationally and virtually.
This is a system generated geotag that indicates that the app was opened at Googleplex.
Is is a personal heads up display for geospatial social networking. Your handle is anonymous and disposable. I use it to mark my travels locally, nationally and virtually.
This is a system generated geotag that indicates that the app was opened at Googleplex.
Subscribe to:
Posts (Atom)


