by Bostonian · 2y ago · 0 comments
import time
start = time.time()
import os
import numpy as np
import pandas as pd
import xgboost as xgb
from sklearn.metrics import mean_squared_error
from scipy.stats import pearsonr
import matplotlib.pyplot as plt
print("time elapsed (s):", "%0.3f"%(time.time() - start))
on my Windows machine istime elapsed (s): 2.630
I'd further _guess_ that only one or two of those libraries are the actual slowdowns.
See here for how to tell: https://stackoverflow.com/a/51300944/602469