-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named 'common_utils' #199
Comments
I have the same problem after installing aif360 using [all] command. Do you find any solution for this? |
Did you clone the full repo from GitHub or just download the single demo notebook file? In the readme we recommend cloning and installing with |
I installed it using same command (pip install 'aif360[all]'). I also downloaded the repo folder for aif360 and put it in the same directory but the error "No module named "common_utils" is still there. Thanks, |
I also have the same problem although I did the setup as you suggested in the README. |
Has anyone found a solution to this? I'm still getting the same error. |
I have the same issue, I've done %pip install common_utils in the notebook, but I still get the error : |
I have the same issue, I've done %pip install common_utils in the notebook, but I still get the error : |
there's a |
I have the same issue as well. |
Make a lab_utils_common.py file with the following code and place it where you have your project or jupyter notebook file: """ np.set_printoptions(precision=2) dlc = dict(dlblue = '#0096ff', dlorange = '#FF9300', dldarkred='#C00000', dlmagenta='#FF40FF', dlpurple='#7030A0', dldarkblue = '#0D5BDC') def sigmoid(z):
########################################################## Regression Routines########################################################## def predict_logistic(X, w, b): def predict_linear(X, w, b): def compute_cost_logistic(X, y, w, b, lambda_=0, safe=False):
def log_1pexp(x, maximum=20):
def compute_cost_matrix(X, y, w, b, logistic=False, lambda_=0, safe=True):
def compute_gradient_matrix(X, y, w, b, logistic=False, lambda_=0):
def gradient_descent(X, y, w_in, b_in, alpha, num_iters, logistic=False, lambda_=0, verbose=True, Trace=True):
def zscore_normalize_features(X):
#check our work ###################################################### Common Plotting Routines###################################################### def plot_data(X, y, ax, pos_label="y=1", neg_label="y=0", s=80, loc='best' ):
def plt_tumor_data(x, y, ax):
Draws a threshold at 0.5def draw_vthresh(ax,x): #----------------------------------------------------- common interactive plotting routines#----------------------------------------------------- class button_manager:
|
Hello,
I work on mac os and try to run the LFR demo. I created a conda environment as in the README and install using pip the entire package(
pip install 'aif360[all]'
).When I run the first cell in the notebook I get the error
No module named 'common_utils'
. This script exists in the examples directory (here) but is not imported correctly.The text was updated successfully, but these errors were encountered: