title: calling a function from another class file
body: <p>I have a class <code>LogisticRegression</code> in a file called <code>logisticRegression.py</code>.</p>
  
  <p>In this class I create a function called <code>negative_log_likelihood(self,y)</code>.</p>
  
  <p>In another script I introduce a new object of class <code>LogisticRegression</code> and it is working normaly. </p>
  
  <p>But if I call the function <code>negative_log_likelihood</code> it doesn't work. It gives me:</p>
  
  <blockquote>
    <p>AttributeError: 'LogisticRegression' object has no attribute negative_log_likelihood'</p>
  </blockquote>
  
  <p>I called the function using </p>
  
  <pre><code>from logisticRegression import negative_log_likelihood
  </code></pre>
  
  <p>But it doesnt work. </p>
  
  <p>Any ideas?</p>