Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions custom_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
import re


#==============Your Name======================
# Your code
#==============Your Name=====================
#==============Abdul Malik======================
def add_product_feature(X):
df = X.copy()
df['feature_main'] = df['carat_weight'] * df['price_per_carat']
return df

def rmsle(y_true, y_pred):
y_pred = np.maximum(y_pred, 0)
return np.sqrt(mean_squared_log_error(y_true, y_pred))
#==============Abdul Malik=====================
#Dont remove the following snippet and follow the same