Skip to content
Snippets Groups Projects
Commit 40ddf8de authored by Sören Henning's avatar Sören Henning
Browse files

Add temporary logging

parent 1870260a
No related branches found
No related tags found
3 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
Pipeline #2821 canceled
......@@ -2,10 +2,12 @@ from sklearn.linear_model import LinearRegression
import pandas as pd
import os
def compute(x, warmup_sec):
input = x
input['sec_start'] = input.loc[0:, 'timestamp'] - input.iloc[0]['timestamp']
regress = input.loc[input['sec_start'] >= warmup_sec] # Warm-Up
def compute(data, warmup_sec):
data['sec_start'] = data.loc[0:, 'timestamp'] - data.iloc[0]['timestamp']
print(data)
regress = data.loc[data['sec_start'] >= warmup_sec] # Warm-Up
print(regress)
X = regress.iloc[:, 2].values.reshape(-1, 1) # values converts it into a numpy array
Y = regress.iloc[:, 3].values.reshape(-1, 1) # -1 means that calculate the dimension of rows, but have 1 column
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment