Question 5
You are analyzing a dataset of protein-protein interaction (PPI) samples. Each interaction is represented by 3 numerical features: , where . The binary target variable represents whether an interaction occurs () or not ().
You aim to train a logistic regression model with L2 regularization (ridge regression) to predict interactions based on these features. The regularized cost function, , is defined as:
where, is the cross entropy loss as seen in lecture videos.
penalizes large weights to avoid overfitting using the following settings:
- Regularization strength
- Initial parameters:
- Learning rate:
Compute the regularized cost function , for a single protein interaction sample with target .
Note: Use as the constant in regularization term of the cost function, where is the batch size.