I am using scikit-learn library and want to play around with the code. How to call the custom library instead of the standard library? Here mycode.py is the main function, which call functions from sklearn (I want to modify sklearn functions)
Here is my code structure
mycode.py
scikit-learn\
benchmarks\
sklearn\
etc
I tried in mycode.py:
from scikit-learn import sklearn
doesn't work because scikit-learn is an invalid Python module name. I can't change repository name either since it will break all the sklearn tests. I also tried
import os, sys
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(CURRENT_DIR+"/scikit-learn"))
import sklearn
But it keeps importing the standard library. How to fix this problem?