I recently had to remove all traces of a file from a GIT repository.
First clone the repository:
git clone ssh://[email protected]/home/repositories/codebase codebase
class CustomGradientBoostingRegressor: | |
def __init__(self, learning_rate, n_estimators, max_depth=1): | |
self.learning_rate = learning_rate | |
self.n_estimators = n_estimators | |
self.max_depth = max_depth | |
self.trees = [] | |
def fit(self, X, y): | |
from sklearn.ensemble import GradientBoostingRegressor | |
from sklearn.metrics import mean_squared_error | |
custom_gbm = CustomGradientBoostingRegressor( | |
n_estimators=20, | |
learning_rate=0.1, | |
max_depth=1 | |
) | |
custom_gbm.fit(x, y) | |
custom_gbm_rmse = mean_squared_error(y, custom_gbm.predict(x), squared=False) |
I recently had to remove all traces of a file from a GIT repository.
First clone the repository:
git clone ssh://[email protected]/home/repositories/codebase codebase