Skip to content

Commit

Permalink
Fixing colab & notebook links (#309)
Browse files Browse the repository at this point in the history
* Fixing colab & notebook links

* version bump
  • Loading branch information
ItayGabbay committed Dec 22, 2021
1 parent bf8d50a commit 950de75
Show file tree
Hide file tree
Showing 91 changed files with 56 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .licenserc_fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ header:
- 'VERSION'
- 'deepchecks.egg-info/PKG-INFO'
- 'makefile'
- 'notebooks/'
- 'examples/'
- 'docs/'
- 'deepchecks/ppscore.py'
comment: on-failure
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ data integrity, distribution mismatches, and more.
Each check enables you to inspect a specific aspect of your data and models.
They are the basic building block of the deepchecks package, covering all kinds of common issues,
such as: PerformanceOverfit, DataSampleLeakage, SingleFeatureContribution,
DataDuplicates, and [many more checks](./notebooks/checks).
DataDuplicates, and [many more checks](examples/checks).
Each check can have two types of results:
1. A visual result meant for display (e.g. a figure or a table).
2. A return value that can be used for validating the expected check results
Expand Down Expand Up @@ -167,8 +167,8 @@ are in that suite.

### Example Notebooks
For usage examples, check out:
- [**Quickstart Notebook**](./notebooks/examples/quickstart_in_5_minutes.ipynb) - for running your first suite with a few lines of code.
- [**Example Checks Output Notebooks**](./notebooks/checks) - to see all of the existing checks and their usage examples.
- [**Quickstart Notebook**](examples/howto-guides/quickstart_in_5_minutes.ipynb) - for running your first suite with a few lines of code.
- [**Example Checks Output Notebooks**](examples/checks) - to see all of the existing checks and their usage examples.

## Communication
- Join our [Slack Community](https://join.slack.com/t/deepcheckscommunity/shared_invite/zt-y28sjt1v-PBT50S3uoyWui_Deg5L_jg) to connect with the maintainers and follow users and interesting discussions
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.14
0.0.15
10 changes: 4 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@

GIT = {
"user": "deepchecks",
"repo": "deepchecks",
"documentation-path": "docs/source"
"repo": "deepchecks"
}

try:
Expand Down Expand Up @@ -367,14 +366,13 @@ def generate_colab_url(notebook_path: str) -> str:
raise RuntimeError(f"Not a notebook - {notebook_path}")

template = (
"https://colab.research.google.com/github/{user}/{repo}/blob/{branch}/{docpath}/{notebook_path}"
"https://colab.research.google.com/github/{user}/{repo}/blob/{branch}/{notebook_path}"
)

return template.format(
user=GIT['user'],
repo=GIT['repo'],
branch=GIT['release'],
docpath=GIT['documentation-path'],
notebook_path=notebook_path
)

Expand All @@ -396,13 +394,13 @@ def generate_binder_url(notebook_path: str) -> str:
user=GIT['user'],
repo=GIT['repo'],
branch=GIT['release'],
filepath=f"{GIT['documentation-path']}/{notebook_path}"
filepath=notebook_path
)


@functools.lru_cache(maxsize=None)
def get_example_notebooks() -> t.Tuple[pathlib.Path, ...]:
examples_folder = PROJECT_DIR / "notebooks"
examples_folder = PROJECT_DIR / "examples"

if not examples_folder.exists() or not examples_folder.is_dir():
raise RuntimeError("Did not find the folder with the example notebooks.")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/distribution/train_test_feature_drift.ipynb"
"path": "../../../../../examples/checks/distribution/train_test_feature_drift.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/distribution/trust_score_comparison.ipynb"
"path": "../../../../../examples/checks/distribution/trust_score_comparison.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/distribution/whole_dataset_drift.ipynb"
"path": "../../../../../examples/checks/distribution/whole_dataset_drift.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/data_duplicates.ipynb"
"path": "../../../../../examples/checks/integrity/data_duplicates.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/dominant_frequency_change.ipynb"
"path": "../../../../../examples/checks/integrity/dominant_frequency_change.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/is_single_value.ipynb"
"path": "../../../../../examples/checks/integrity/is_single_value.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/label_ambiguity.ipynb"
"path": "../../../../../examples/checks/integrity/label_ambiguity.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/mixed_data_types.ipynb"
"path": "../../../../../examples/checks/integrity/mixed_data_types.ipynb"
}
2 changes: 1 addition & 1 deletion docs/source/examples/checks/integrity/mixed_nulls.nblink
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/mixed_nulls.ipynb"
"path": "../../../../../examples/checks/integrity/mixed_nulls.ipynb"
}
2 changes: 1 addition & 1 deletion docs/source/examples/checks/integrity/new_category.nblink
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/new_category.ipynb"
"path": "../../../../../examples/checks/integrity/new_category.ipynb"
}
2 changes: 1 addition & 1 deletion docs/source/examples/checks/integrity/new_label.nblink
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/new_label.ipynb"
"path": "../../../../../examples/checks/integrity/new_label.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/special_characters.ipynb"
"path": "../../../../../examples/checks/integrity/special_characters.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/string_length_out_of_bounds.ipynb"
"path": "../../../../../examples/checks/integrity/string_length_out_of_bounds.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/string_mismatch.ipynb"
"path": "../../../../../examples/checks/integrity/string_mismatch.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/integrity/string_mismatch_comparison.ipynb"
"path": "../../../../../examples/checks/integrity/string_mismatch_comparison.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/boosting_overfit.ipynb"
"path": "../../../../../examples/checks/methodology/boosting_overfit.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/datasets_size_comparison.ipynb"
"path": "../../../../../examples/checks/methodology/datasets_size_comparison.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/date_train_validation_leakage_duplicates.ipynb"
"path": "../../../../../examples/checks/methodology/date_train_validation_leakage_duplicates.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/date_train_validation_leakage_overlap.ipynb"
"path": "../../../../../examples/checks/methodology/date_train_validation_leakage_overlap.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/identifier_leakage.ipynb"
"path": "../../../../../examples/checks/methodology/identifier_leakage.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/index_leakage.ipynb"
"path": "../../../../../examples/checks/methodology/index_leakage.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/model_inference_time.ipynb"
"path": "../../../../../examples/checks/methodology/model_inference_time.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/performance_overfit.ipynb"
"path": "../../../../../examples/checks/methodology/performance_overfit.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/single_feature_contribution.ipynb"
"path": "../../../../../examples/checks/methodology/single_feature_contribution.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/single_feature_contribution_train_test.ipynb"
"path": "../../../../../examples/checks/methodology/single_feature_contribution_train_test.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/train_test_samples_mix.ipynb"
"path": "../../../../../examples/checks/methodology/train_test_samples_mix.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/methodology/unused_features.ipynb"
"path": "../../../../../examples/checks/methodology/unused_features.ipynb"
}
2 changes: 1 addition & 1 deletion docs/source/examples/checks/overview/columns_info.nblink
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/overview/columns_info.ipynb"
"path": "../../../../../examples/checks/overview/columns_info.ipynb"
}
2 changes: 1 addition & 1 deletion docs/source/examples/checks/overview/model_info.nblink
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/overview/model_info.ipynb"
"path": "../../../../../examples/checks/overview/model_info.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/performance/calibration_score.ipynb"
"path": "../../../../../examples/checks/performance/calibration_score.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/performance/class_performance.ipynb"
"path": "../../../../../examples/checks/performance/class_performance.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/performance/confusion_matrix_report.ipynb"
"path": "../../../../../examples/checks/performance/confusion_matrix_report.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/performance/performance_report.ipynb"
"path": "../../../../../examples/checks/performance/performance_report.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/performance/regression_error_distribution.ipynb"
"path": "../../../../../examples/checks/performance/regression_error_distribution.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/performance/regression_systematic_error.ipynb"
"path": "../../../../../examples/checks/performance/regression_systematic_error.ipynb"
}
2 changes: 1 addition & 1 deletion docs/source/examples/checks/performance/roc_report.nblink
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/performance/roc_report.ipynb"
"path": "../../../../../examples/checks/performance/roc_report.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/performance/segment_performance.ipynb"
"path": "../../../../../examples/checks/performance/segment_performance.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../../notebooks/checks/performance/simple_model_comparison.ipynb"
"path": "../../../../../examples/checks/performance/simple_model_comparison.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../notebooks/examples/add_a_custom_check.ipynb"
"path": "../../../../examples/howto-guides/add_a_custom_check.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../notebooks/examples/configure_check_conditions.ipynb"
"path": "../../../../examples/howto-guides/configure_check_conditions.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../notebooks/examples/create_a_custom_suite.ipynb"
"path": "../../../../examples/howto-guides/create_a_custom_suite.ipynb"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"path": "../../../../notebooks/examples/quickstart_in_5_minutes.ipynb"
"path": "../../../../examples/howto-guides/quickstart_in_5_minutes.ipynb"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ REQUIREMENTS_LOG := .requirements.log
ANALIZE_PKGS = pylint pydocstyle flake8 flake8-spellcheck flake8-eradicate flake8-rst
TEST_CODE := tests/
TEST_RUNNER_PKGS = pytest pytest-cov pyhamcrest nbval
NOTEBOOK_CHECKS = ./notebooks/checks
NOTEBOOK_EXAMPLES = ./notebooks/examples/*.ipynb
NOTEBOOK_SANITIZER_FILE= ./notebooks/.nbval-sanitizer
NOTEBOOK_CHECKS = ./examples/checks
NOTEBOOK_EXAMPLES = ./examples/howto-guides/*.ipynb
NOTEBOOK_SANITIZER_FILE= ./examples/.nbval-sanitizer

PYLINT_LOG = .pylint.log

Expand Down Expand Up @@ -103,7 +103,7 @@ help:
@echo "test - TEST_RUNNER on '$(TESTDIR)'"
@echo " args=\"<pytest Arguements>\" optional arguments"
@echo "coverage - Get coverage information, optional 'args' like test\n"
@echo "jupyter - Deploy jupyer-notebook using './notebook' directory"
@echo "jupyter - Deploy jupyer-notebook using './examples' directory"
@echo " args=\"<jupyter Arguments\" -passable\n"
@echo "tox - Test against multiple versions of python as defined in tox.ini"
@echo "clean | clean-all - Clean up | clean up & removing virtualenv"
Expand Down Expand Up @@ -308,7 +308,7 @@ download:
$(PIP) install $(PROJECT)

jupyter: $(JUPYTER)
$(BIN)/jupyter-notebook $(args) --notebook-dir=./notebooks
$(BIN)/jupyter-notebook $(args) --notebook-dir=./examples

$(JUPYTER):
$(PIP) install jupyter

0 comments on commit 950de75

Please sign in to comment.