Skip to content

Commit 547901f

Browse files
tashayPGijsbers
authored andcommitted
Fix typos and grammatical errors in docs and examples. (#845)
* Fix typos and grammatical errors in docs and examples. * a->an because it is followed by a vowel ('o')
1 parent 43596e0 commit 547901f

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

doc/contributing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ you can use github's assign feature, otherwise you can just leave a comment.
2121
Scope of the package
2222
====================
2323

24-
The scope of the OpenML python package is to provide a python interface to
25-
the OpenML platform which integrates well with pythons scientific stack, most
24+
The scope of the OpenML Python package is to provide a Python interface to
25+
the OpenML platform which integrates well with Python's scientific stack, most
2626
notably `numpy <http://www.numpy.org/>`_ and `scipy <https://www.scipy.org/>`_.
2727
To reduce opportunity costs and demonstrate the usage of the package, it also
2828
implements an interface to the most popular machine learning package written
29-
in python, `scikit-learn <http://scikit-learn.org/stable/index.html>`_.
29+
in Python, `scikit-learn <http://scikit-learn.org/stable/index.html>`_.
3030
Thereby it will automatically be compatible with many machine learning
3131
libraries written in Python.
3232

3333
We aim to keep the package as light-weight as possible and we will try to
3434
keep the number of potential installation dependencies as low as possible.
3535
Therefore, the connection to other machine learning libraries such as
3636
*pytorch*, *keras* or *tensorflow* should not be done directly inside this
37-
package, but in a separate package using the OpenML python connector.
37+
package, but in a separate package using the OpenML Python connector.
3838

3939
.. _issues:
4040

@@ -52,7 +52,7 @@ contains longer-term goals.
5252
How to contribute
5353
=================
5454

55-
There are many ways to contribute to the development of the OpenML python
55+
There are many ways to contribute to the development of the OpenML Python
5656
connector and OpenML in general. We welcome all kinds of contributions,
5757
especially:
5858

doc/usage.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ Installation & Set up
2121
~~~~~~~~~~~~~~~~~~~~~~
2222

2323
The OpenML Python package is a connector to `OpenML <https://www.openml.org/>`_.
24-
It allows to use and share datasets and tasks, run
24+
It allows you to use and share datasets and tasks, run
2525
machine learning algorithms on them and then share the results online.
2626

2727
The following tutorial gives a short introduction on how to install and set up
28-
the OpenML python connector, followed up by a simple example.
28+
the OpenML Python connector, followed up by a simple example.
2929

3030
* `Introduction <examples/introduction_tutorial.html>`_
3131

@@ -52,7 +52,7 @@ Working with tasks
5252
~~~~~~~~~~~~~~~~~~
5353

5454
You can think of a task as an experimentation protocol, describing how to apply
55-
a machine learning model to a dataset in a way that it is comparable with the
55+
a machine learning model to a dataset in a way that is comparable with the
5656
results of others (more on how to do that further down). Tasks are containers,
5757
defining which dataset to use, what kind of task we're solving (regression,
5858
classification, clustering, etc...) and which column to predict. Furthermore,
@@ -86,7 +86,7 @@ predictions of that run. When a run is uploaded to the server, the server
8686
automatically calculates several metrics which can be used to compare the
8787
performance of different flows to each other.
8888

89-
So far, the OpenML python connector works only with estimator objects following
89+
So far, the OpenML Python connector works only with estimator objects following
9090
the `scikit-learn estimator API <http://scikit-learn.org/dev/developers/contributing.html#apis-of-scikit-learn-objects>`_.
9191
Those can be directly run on a task, and a flow will automatically be created or
9292
downloaded from the server if it already exists.

examples/20_basic/introduction_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
openml.config.start_using_configuration_for_example()
6262

6363
############################################################################
64-
# When using the main server, instead make sure your apikey is configured.
64+
# When using the main server instead, make sure your apikey is configured.
6565
# This can be done with the following line of code (uncomment it!).
6666
# Never share your apikey with others.
6767

examples/20_basic/simple_suites_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
print(tasks)
5151

5252
####################################################################################################
53-
# and iterated for benchmarking. For speed reasons we'll only iterate over the first three tasks:
53+
# and iterated over for benchmarking. For speed reasons we'll only iterate over the first three tasks:
5454

5555
for task_id in tasks[:3]:
5656
task = openml.tasks.get_task(task_id)

examples/30_extended/create_upload_tutorial.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@
198198
############################################################################
199199
# Dataset is a pandas DataFrame
200200
# =============================
201-
# It might happen that your dataset is made of heterogeneous data which can be
202-
# usually stored as a Pandas DataFrame. DataFrame offers the adavantages to
203-
# store the type of data for each column as well as the attribute names.
204-
# Therefore, when providing a Pandas DataFrame, OpenML can infer those
205-
# information without the need to specifically provide them when calling the
201+
# It might happen that your dataset is made of heterogeneous data which can usually
202+
# be stored as a Pandas DataFrame. DataFrames offer the advantage of
203+
# storing the type of data for each column as well as the attribute names.
204+
# Therefore, when providing a Pandas DataFrame, OpenML can infer this
205+
# information without needing to explicitly provide it when calling the
206206
# function :func:`create_dataset`. In this regard, you only need to pass
207207
# ``'auto'`` to the ``attributes`` parameter.
208208

examples/30_extended/fetch_evaluations_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Fetching Evaluations
44
====================
55
6-
Evalutions contain a concise summary of the results of all runs made. Each evaluation
6+
Evaluations contain a concise summary of the results of all runs made. Each evaluation
77
provides information on the dataset used, the flow applied, the setup used, the metric
88
evaluated, and the result obtained on the metric, for each such run made. These collection
99
of results can be used for efficient benchmarking of an algorithm and also allow transparent

examples/30_extended/flow_id_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
print(flow_id)
2525

2626
####################################################################################################
27-
# This piece of code is rather involved. First, it retrieves an
27+
# This piece of code is rather involved. First, it retrieves a
2828
# :class:`~openml.extensions.Extension` which is registered and can handle the given model,
2929
# in our case it is :class:`openml.extensions.sklearn.SklearnExtension`. Second, the extension
3030
# converts the classifier into an instance of :class:`openml.flow.OpenMLFlow`. Third and finally,
@@ -63,6 +63,6 @@
6363
print(flow_ids)
6464

6565
####################################################################################################
66-
# This also work with the actual model (generalizing the first part of this example):
66+
# This also works with the actual model (generalizing the first part of this example):
6767
flow_ids = openml.flows.get_flow_id(model=clf, exact_version=False)
6868
print(flow_ids)

examples/30_extended/tasks_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
# Let's create a classification task on a dataset. In this example we will do this on the
176176
# Iris dataset (ID=128 (on test server)). We'll use 10-fold cross-validation (ID=1),
177177
# and *predictive accuracy* as the predefined measure (this can also be left open).
178-
# If a task with these parameters exist, we will get an appropriate exception.
178+
# If a task with these parameters exists, we will get an appropriate exception.
179179
# If such a task doesn't exist, a task will be created and the corresponding task_id
180180
# will be returned.
181181

0 commit comments

Comments
 (0)