我正在尝试将电子邮件帐户和电话身份验证与Firebase链接,但是在我尝试链接时向我发送错误消息。如果我使用方法“ signInWithCredential”,似乎可以正常工作,但是如果使用“ linkWithCredential”则抛出FirebaseAuthInvalidCredentialsException
我尝试使用updatePhoneNumber,但抛出相同的错误,凭据不正确
import pandas as pd
from sklearn.linear_model import LinearRegression
dic = {'par_1': [10, 30, 11, 19, 28, 33, 23],
'par_2': [1, 3, 1, 2, 3, 3, 2],
'par_3': [15, 3, 16, 65, 24, 56, 13],
'outcome': [101, 905, 182, 268, 646, 624, 465]}
df = pd.DataFrame(dic)
variables = df.iloc[:,:-1]
results = df.iloc[:,-1]
print(variables.shape)
print(results.shape)
reg = LinearRegression()
reg.fit(variables, results)
x = reg.predict([[18, 2, 21]])[0]
print(x)