diff --git a/docs/pages/doctrees/Abstract.doctree b/docs/pages/doctrees/Abstract.doctree index 09d5a68..900b111 100644 Binary files a/docs/pages/doctrees/Abstract.doctree and b/docs/pages/doctrees/Abstract.doctree differ diff --git a/docs/pages/doctrees/Coding quality.doctree b/docs/pages/doctrees/Coding quality.doctree index 2f01d18..7830147 100644 Binary files a/docs/pages/doctrees/Coding quality.doctree and b/docs/pages/doctrees/Coding quality.doctree differ diff --git a/docs/pages/doctrees/Examples.doctree b/docs/pages/doctrees/Examples.doctree index 4eaa660..c8992c5 100644 Binary files a/docs/pages/doctrees/Examples.doctree and b/docs/pages/doctrees/Examples.doctree differ diff --git a/docs/pages/doctrees/Installation.doctree b/docs/pages/doctrees/Installation.doctree index a705841..a68d74e 100644 Binary files a/docs/pages/doctrees/Installation.doctree and b/docs/pages/doctrees/Installation.doctree differ diff --git a/docs/pages/doctrees/Parametric.doctree b/docs/pages/doctrees/Parametric.doctree index 43caf9a..c24a3ea 100644 Binary files a/docs/pages/doctrees/Parametric.doctree and b/docs/pages/doctrees/Parametric.doctree differ diff --git a/docs/pages/doctrees/Percentile.doctree b/docs/pages/doctrees/Percentile.doctree index 396c07a..b897b18 100644 Binary files a/docs/pages/doctrees/Percentile.doctree and b/docs/pages/doctrees/Percentile.doctree differ diff --git a/docs/pages/doctrees/Performance.doctree b/docs/pages/doctrees/Performance.doctree index 57057d5..693a513 100644 Binary files a/docs/pages/doctrees/Performance.doctree and b/docs/pages/doctrees/Performance.doctree differ diff --git a/docs/pages/doctrees/Quantile.doctree b/docs/pages/doctrees/Quantile.doctree index 8bb8f32..1567469 100644 Binary files a/docs/pages/doctrees/Quantile.doctree and b/docs/pages/doctrees/Quantile.doctree differ diff --git a/docs/pages/doctrees/Save and Load.doctree b/docs/pages/doctrees/Save and Load.doctree index 8391e0b..cfe8306 100644 Binary files a/docs/pages/doctrees/Save and Load.doctree and b/docs/pages/doctrees/Save and Load.doctree differ diff --git a/docs/pages/doctrees/distfit.distfit.doctree b/docs/pages/doctrees/distfit.distfit.doctree index 65f7f8f..541715d 100644 Binary files a/docs/pages/doctrees/distfit.distfit.doctree and b/docs/pages/doctrees/distfit.distfit.doctree differ diff --git a/docs/pages/doctrees/environment.pickle b/docs/pages/doctrees/environment.pickle index 25bf207..970f565 100644 Binary files a/docs/pages/doctrees/environment.pickle and b/docs/pages/doctrees/environment.pickle differ diff --git a/docs/pages/doctrees/index.doctree b/docs/pages/doctrees/index.doctree index 2e02884..b1329cb 100644 Binary files a/docs/pages/doctrees/index.doctree and b/docs/pages/doctrees/index.doctree differ diff --git a/docs/pages/html/Abstract.html b/docs/pages/html/Abstract.html index c730051..2015917 100644 --- a/docs/pages/html/Abstract.html +++ b/docs/pages/html/Abstract.html @@ -3,9 +3,9 @@
- + - +- - © Copyright 2020, Erdogan Taskesen + © Copyright 2020, Erdogan Taskesen.
- - © Copyright 2020, Erdogan Taskesen + © Copyright 2020, Erdogan Taskesen.
out
is a dictionary containing y_proba
, y_pred
and df
.
-The output values has the same order as input value y
out
is a dictionary containing y
, y_proba
, y_pred
and P
.
+The output values has the same order as input value y
+Note that dataframe df
is included when using the todf=True paramter.
# Print probabilities
print(out['y_proba'])
# > [0.02702734, 0.04908335, 0.08492715, 0.13745288, 0.49567466, 0.41288701, 0.3248188 , 0.02260135, 0.00636084]
@@ -379,7 +384,8 @@ Make predictions¶
In the previous example, we showed that the output can be captured results
and out
but the results are also stored in the object itself.
In our examples it is the dist
object.
-The same variable names are used; y_proba
, y_pred
and df
.
+The same variable names are used; y
, y_proba
, y_pred
and P
.
+Note that dataframe df
is included when using the todf=True paramter.
# All scores of the tested distributions
print(dist.summary)
@@ -387,15 +393,15 @@ Extract resultsdist.model
# Show the predictions for y
-print(dist.y_pred)
+print(dist.results['y_pred'])
# ['down' 'down' 'none' 'none' 'none' 'none' 'up' 'up' 'up']
# Show the probabilities for y that belong with the predictions
-print(dist.y_proba)
+print(dist.results['y_proba'])
# [2.75338375e-05 2.74664877e-03 4.74739680e-01 3.28636879e-01 1.99195071e-01 1.06316132e-01 5.05914722e-02 2.18922761e-02 8.89349927e-03]
-# All predicted information is also stored in a structured dataframe
-print(dist.df)
+# All predicted information is also stored in a structured dataframe (only when setting the todf=True)
+print(dist.results['df'])