@@ -54,99 +54,23 @@ From within the directory of the cloned package, execute
5454
5555 python setup.py test
5656
57- -----------
58- Basic Usage
59- -----------
57+ Usage
58+ ~~~~~
6059
61- Connecting to the OpenML server
62- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63-
64- The OpenML server can only be accessed by users who have signed up to the OpenML
65- platform. If you don't have an account yet,
66- `sign up now <http://openml.org/register >`_.
67-
68- .. code :: python
69-
70- >> > from openml.apiconnector import APIConnector
71-
72- >> > username = " Your OpenML username"
73- >> > password = " Your OpenML password"
74- >> > connector = APIConnector(username = username, password = password)
75-
76- The :class: `~openml.apiconnector.APIConnector ` will create a cache directory
77- and authenticate you at the OpenML server. By this you obtain a session key,
78- which is valid for one hour.
79-
80- You can also configure the OpenML package, e.g. change the cache directory.
81- Information about the configuration is in the
82- `OpenML client API description <https://github
83- .com/openml/OpenML/wiki/Client-API> `_.
84-
85- Working with datasets
86- ~~~~~~~~~~~~~~~~~~~~~
87-
88- .. code :: python
89-
90- >> > dataset_id = 31
91- >> > dataset = connector.download_dataset(1 )
92-
93- Attributes of the dataset are stored as member variables:
94-
95- .. code :: python
96-
97- >> > dataset.name
98- u ' credit-g'
99- >> > dataset.default_target_attribute
100- u ' class'
101-
102- Data can be loaded in the following ways:
103-
104- .. code :: python
105-
106- >> > pd, categorical = dataset.get_pandas()
107-
108- returns the dataset as a pandas.DataFrame and a list of booleans,
109- indicating which attributes are categorical. Categorical attributes are
110- already encoded as integers.
111-
112- .. code :: python
113-
114- >> > X, y, categorical = dataset.get_pandas()
115-
116- returns the dataset split into X and y, as well as a list indicating which
117- attributes are categorical. In case you are working with `scikit-learn
118- <http://scikit-learn> `_, you can use this data right away:
119-
120- .. code :: python
121-
122- >> > from sklearn import preprocessing, ensemble
123- >> > enc = preprocessing.OneHotEncoder(categorical_features = categorical)
124- OneHotEncoder(categorical_features = [True , False , True , True , False , True ,
125- True , False , True , True , False , True , False , True , True , False , True ,
126- False , True , True ], dtype = < type ' float' > , n_values = ' auto' ,
127- sparse = True )
128- >> > X = enc.transform(X).todense()
129- >> > clf = ensemble.RandomForestClassifier()
130- >> > clf.fit(X, y)
131- RandomForestClassifier(bootstrap = True , compute_importances = None ,
132- criterion = ' gini' , max_depth = None , max_features = ' auto' ,
133- max_leaf_nodes = None , min_density = None , min_samples_leaf = 1 ,
134- min_samples_split = 2 , n_estimators = 10 , n_jobs = 1 ,
135- oob_score = False , random_state = None , verbose = 0 )
136-
137- Working with tasks
138- ~~~~~~~~~~~~~~~~~~
139-
140- Using the cache
141- ~~~~~~~~~~~~~~~
60+ * :ref: `usage `
61+ * :ref: `api `
14262
143- Large scale experiments
144- ~~~~~~~~~~~~~~~~~~~~~~~
63+ Contributing
64+ ~~~~~~~~~~~~
14565
146- Indices and tables
147- ==================
66+ Contribution to the OpenML package is highly appreciated. Currently,
67+ there is a lot of work left on implementing API calls,
68+ testing them and providing examples to allow new users to easily use the
69+ OpenML package. See the :ref: `progress ` page for open tasks.
14870
149- * :ref: `api `
150- * :ref: `search `
71+ Please contact `Matthias <http://aad.informatik.uni-freiburg.de/people/feurer/index.html >`_
72+ prior to start working on an issue or missing feature to avoid duplicate work
73+ . Please check the current implementations of the API calls and the method
15174
75+ .. automethod :: openml.apiconnector.APIConnector._perform_api_call
15276
0 commit comments