I have two matrix one X with all the feature values with 300000 rows and 14 columns, where columns represent the feature ids. for each I have another variable which defines labels Y which is of dimension 300000 x 1 either 0 or 1.
How do I calculate logistic regression from this matrix ?
This is surprisingly easy.
In the future just try typing what seems obvious first. You’ll learn much faster if you’re not afraid of making mistakes.