Find out the location of Python class definition files.

Use ipython% pinfo

~/Documents/.../python/numpy $ ipython                                                        git[branch:master]
from sklearn.ensemble import RandomForestClassifier, ExtraTreesClassifierPython 2.7.3 (default, Apr 13 2012, 00:05:08) 
Type "copyright", "credits" or "license" for more information.

IPython 0.13 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from sklearn.ensemble import RandomForestClassifier, ExtraTreesClassifier

In [2]: %p
%%perl      %paste      %pdef       %pinfo      %pprint     %prun       %pushd      %pylab      
%%prun      %pastebin   %pdoc       %pinfo2     %precision  %psearch    %pwd        
%page       %pdb        %pfile      %popd       %profile    %psource    %pycat      

In [2]: %pinfo RandomForestClassifier

String Form:<class 'sklearn.ensemble.forest.RandomForestClassifier'>
File:       /Library/Python/2.7/site-packages/scikit_learn-0.13.1-py2.7-macosx-10.8-intel.egg/sklearn/ensemble/forest.py
Docstring:
A random forest classifier.

A random forest is a meta estimator that fits a number of classifical
decision trees on various sub-samples of the dataset and use averaging
to improve the predictive accuracy and control over-fitting.

...

Recommended Posts

Find out the location of Python class definition files.
Find out the location of packages installed with pip
Find the definition of the value of errno
Find out the apparent width of a string in python
Python --Find out number of groups in the regex expression
Find out the name of the method that called it from the method that is python
Find the divisor of the value entered in python
Find the solution of the nth-order equation in python
Find out the day of the week with datetime
Find the geometric mean of n! Using Python
Find the maximum Python
the zen of Python
Extract the table of image files with OneDrive & Python
Find out the version of the language you are running
A python implementation of the Bayesian linear regression class
I checked out the versions of Blender and Python
Why is the first argument of [Python] Class self?
I used Python to find out about the role choices of the 51 "Yachts" in the world.
[Python] Find out about pip
Towards the retirement of Python2
Find the difference in Python
About the ease of Python
About the features of Python
The Power of Pandas: Python
Find the maximum python (improved)
I tried to find the entropy of the image with python
Maya | Find out the number of polygons in the selected object
Find the diameter of the graph by breadth-first search (Python memory)
Find the eigenvalues of a real symmetric matrix in Python
The story of Python and the story of NaN
[Python] Find the second smallest value.
[Python] The stumbling block of import
Find out the age and number of winnings of prefectural governors nationwide
[Python of Hikari-] Chapter 09-03 Class (inheritance)
First Python 3 ~ The beginning of repetition ~
"The easiest Python introductory class" modified
Find the sensor installation location that maximizes the amount of acquired data
Existence from the viewpoint of Python
pyenv-change the python version of virtualenv
Handling of JSON files in Python
Find out the mystery change of Pokédex description by Levenshtein distance
Find the Levenshtein Distance with python
Change the Python version of Homebrew
[Python] Understanding the potential_field_planning of Python Robotics
Review of the basics of Python (FizzBuzz)
Examine the object's class in python
python beginners tried to find out
About the basics list of Python basics
[Python] A simple function to find the center coordinates of a circle
Learn the basics of Python ① Beginners
[Completed version] Try to find out the number of residents in the town from the address list with Python
How to find out the number of CPUs without using the sar command
I want to explain the abstract class (ABCmeta) of Python in detail.
Hit a method of a class instance with the Python Bottle Web API
Find the general terms of the Tribonacci sequence with linear algebra and Python
[Python] Master the reading of csv files. List of main options for pandas.read_csv.
Find the maximum value python (fixed ver)
Find the area of the union of overlapping rectangles
[python] Move files that meet the conditions
Change the length of Python csv strings
Check the behavior of destructor in Python