1# Estimator
2The Estimator interface is implemented by all learners in Rubix ML. It provides basic inference functionality through the `predict()` method which returns a set of predictions from a dataset. Additionally, it provides methods for returning estimator type and data type compatibility declarations.
3
4### Make Predictions
5Return the predictions from a dataset containing unknown samples in an array:
6```php
7public predict(Dataset $dataset) : array
8```
9
10```php
11$predictions = $estimator->predict($dataset);
12
13var_dump($predictions);
14```
15
16```sh
17array(3) {
18  [0]=>
19  string(7) "married"
20  [1]=>
21  string(8) "divorced"
22  [2]=>
23  string(7) "married"
24}
25```
26
27!!! note
28    The return value of `predict()` is an array containing the predictions in the same order that they were indexed in the dataset.
29