We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Laptop Battery Life
Laptop Battery Life
Sort by
recency
|
221 Discussions
|
Please Login in order to post a comment
#!/bin/python3
import math import os import random import re import sys import numpy as np from sklearn.linear_model import LinearRegression from sklearn.preprocessing import PolynomialFeatures
def prediction(inp):
if name == 'main': timeCharged = float(input().strip()) prediction(timeCharged)
I saw alot of the conversations here and none of them used IA to solve it, so I will give you a clue: It looks like an inverted ReLU function
Check out this video for full code with explanation to solve battery life prediction in python using linear regressio, https://youtu.be/48L4LIwW1Tg?si=KWfgSUgkDf3oWRDm