Skip to content

Commit 4302fd0

Browse files
committed
writing and updating some doc
1 parent ec9ad2f commit 4302fd0

File tree

10 files changed

+125
-67
lines changed

10 files changed

+125
-67
lines changed

doc/api.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
API
22
===
33

4-
This page lists all the public functions and classes of the `skore`
5-
package:
6-
74
.. currentmodule:: skore
85

6+
This page lists all the public functions and classes of the ``skore``
7+
package.
98

109
Project
1110
-------

doc/getting_started.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.. _getting_started:
2+
3+
Getting started
4+
===============
5+
6+
.. currentmodule:: skore
7+
8+
From your shell, initialize a skore project, here named ``project.skore``, that
9+
will be in your current working directory:
10+
11+
.. code:: console
12+
13+
python -m skore create "project.skore"
14+
15+
Then, from your Python code (in the same directory), load the project and store
16+
an integer for example:
17+
18+
.. code-block:: python
19+
20+
from skore import load
21+
project = load("project.skore")
22+
project.put("my_int", 3)
23+
24+
Finally, from your shell (in the same directory), start the UI locally:
25+
26+
.. code:: console
27+
28+
python -m skore launch project.skore
29+
30+
This will automatically open a browser at the UI's location:
31+
32+
#. On the top left, create a new ``View``.
33+
#. From the ``Elements`` section on the bottom left, you can add stored items to this view, either by double-cliking on them or by doing drag-and-drop.
34+
35+
.. image:: https://raw.githubusercontent.com/sylvaincom/sylvaincom.github.io/master/files/probabl/skore/2024_10_14_skore_demo.gif
36+
:alt: Getting started with ``skore`` demo

doc/index.rst

Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,44 @@
11
.. You can adapt this file completely to your liking, but it should at least
22
contain the root `toctree` directive.
33
4-
skore
5-
=====
4+
Welcome to ``skore``
5+
====================
66

7-
Gradient-boosting survival analysis
8-
-----------------------------------
7+
#OwnYourDataScience
8+
-------------------
99

1010
.. container:: index-features
1111

12-
* survival and competing risks
12+
* track and visualize your objects from a user-friendly dashboard
1313

1414
* scikit-learn compatible
1515

16-
* scalable gradient boosting
16+
With ``skore``, data scientists can:
1717

18-
A scalable **time-to-event and competing risk prediction model**
19-
implemented in Python.
18+
#. Store objects of different types from their Python code: python lists, ``scikit-learn`` fitted pipelines, ``plotly`` figures, and more.
19+
#. **Track** and **visualize** these stored objects on a user-friendly dashboard.
20+
#. Export the dashboard to a HTML file.
2021

21-
.. container:: index-box sd-card
22+
These are only the first features: skore is a work in progress and aims to be
23+
an end-to-end library for data scientists.
24+
Stay tuned!
2225

23-
**Competing risks settings**
24-
25-
Predicting which event will happen first, and when, from data where some
26-
events have not yet been observed:
27-
28-
The model is **a gradient-boosting variant**, that offers prediction for
29-
survival and competing risks settings, fully compatible with
30-
`scikit-learn <https://scikit-learn.org>`_. It can be used with
31-
scikit-learn tools such as pipelines, column transformers,
32-
cross-validation, hyper-parameter search tools, etc.
33-
34-
.. This package will also offer neural network based estimators by leveraging
35-
`PyTorch <https://pytorch.org>`_ and `skorch
36-
<https://skorch.readthedocs.io/>`_.
37-
38-
This library puts a focus on predictive accuracy rather than on inference.
39-
Quantifying the statistical association or causal effect of covariates with/on
40-
the cumulated event incidence or instantaneous hazard rate is not in the scope
41-
of this library at this time.
42-
43-
The theory behind the model is described in `this paper
44-
<https://arxiv.org/abs/2406.14085>`_.
45-
46-
- License: MIT
47-
- GitHub repository: https://github.com/soda-inria/hazardous
48-
- Changelog: https://github.com/soda-inria/hazardous/blob/main/CHANGES.rst
26+
- License: BSD
27+
- GitHub repository: https://github.com/probabl-ai/skore
28+
- Discord: http://discord.probabl.ai
4929
- Status: under development, API is subject to change without notice.
5030

31+
.. image:: https://raw.githubusercontent.com/sylvaincom/sylvaincom.github.io/master/files/probabl/skore/2024_10_14_skore_demo.gif
32+
:alt: Getting started with ``skore`` demo
33+
5134
.. currentmodule:: skore
5235

5336
.. toctree::
5437
:maxdepth: 2
5538
:caption: Contents:
5639

57-
api
40+
install
41+
getting_started
5842
auto_examples/index
5943
user_guide
44+
api

doc/install.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. _install:
2+
3+
Install
4+
=======
5+
6+
.. currentmodule:: skore
7+
8+
First of all, we recommend using a `virtual environment (venv) <https://docs.python.org/3/tutorial/venv.html>`_.
9+
You need ``python>=3.9``.
10+
11+
Then, you can install ``skore`` by using `pip``:
12+
13+
.. code:: console
14+
15+
pip install -U skore
16+
17+
You can check ``skore``'s latest version on `PyPI <https://pypi.org/project/skore/>`_.
18+
19+
🚨 For Windows users, the encoding must be set to
20+
`UTF-8 <https://docs.python.org/3/using/windows.html#utf-8-mode>`_:
21+
see `PYTHONUTF8 <https://docs.python.org/3/using/cmdline.html#envvar-PYTHONUTF8>`_.

doc/sg_execution_times.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Computation times
88
=================
9-
**00:00.681** total execution time for 2 files **from all galleries**:
9+
**00:00.637** total execution time for 2 files **from all galleries**:
1010

1111
.. container::
1212

@@ -32,9 +32,9 @@ Computation times
3232
* - Example
3333
- Time
3434
- Mem (MB)
35-
* - :ref:`sphx_glr_auto_examples_plot_demo.py` (``../examples/plot_demo.py``)
36-
- 00:00.652
35+
* - :ref:`sphx_glr_auto_examples_plot_2_basic_usage.py` (``../examples/plot_2_basic_usage.py``)
36+
- 00:00.610
3737
- 0.0
38-
* - :ref:`sphx_glr_auto_examples_plot_demo_2.py` (``../examples/plot_demo_2.py``)
39-
- 00:00.029
38+
* - :ref:`sphx_glr_auto_examples_plot_1_getting_started.py` (``../examples/plot_1_getting_started.py``)
39+
- 00:00.027
4040
- 0.0

doc/user_guide.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ User guide
55

66
.. currentmodule:: skore
77

8-
*The user guide is incoming.*
8+
*The User Guide is currently work in progress and will be released soon, thank
9+
you for your patience!*

examples/README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Examples
22
========
33

4-
Below is a gallery of examples on how to use `skore` for predictive
5-
competitive risk analysis problems.
4+
Below is a gallery of examples on how to use ``skore``.

examples/plot_1_getting_started.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"""
2+
==========================
3+
Getting started with skore
4+
==========================
5+
6+
`This is work in progress.`
7+
8+
This guide provides a quick start to ``skore``, an open-source package that aims to enable data scientists to:
9+
10+
1. Store objects of different types from their Python code: python lists, `scikit-learn` fitted pipelines, `plotly` figures, and more.
11+
2. Track and visualize these stored objects on a user-friendly dashboard.
12+
3. Export the dashboard to a HTML file.
13+
14+
.. prompt:: bash
15+
16+
twine upload dist/*
17+
"""
18+
19+
# %%
20+
# From your shell, initialize a skore project, here named project.skore, that will be in your current working directory:
21+
# ```
22+
# python -m skore create "project.skore"
23+
# ```
24+
25+
26+
# %%
27+
import sklearn
28+
import matplotlib.pyplot as plt
29+
30+
# %%
31+
sklearn.__version__
32+
plt.plot([0, 1, 2, 3], [0, 1, 2, 3])
33+
plt.show()

examples/plot_demo.py renamed to examples/plot_2_basic_usage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
======
3-
blabla
4-
======
2+
====================
3+
Basic usage of skore
4+
====================
55
6-
blabla
6+
This is work in progress.
77
"""
88

99
# %%

examples/plot_demo_2.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)