From 932c89c80214eaf97183edd5bb052010996e0532 Mon Sep 17 00:00:00 2001 From: Umar Farooq Ghumman <46414488+mail4umar@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:08:37 -0400 Subject: [PATCH] Example finalizing (#1321) * added main pages for examples * Update examples_business_battery.rst --- docs/source/examples.rst | 10 ++++---- docs/source/examples_business.rst | 23 +++++++++++++++++++ docs/source/examples_business_battery.rst | 3 ++- docs/source/examples_learn.rst | 8 +++++-- docs/source/examples_understand.rst | 15 ++++++++++++ ... examples_understand_africa_education.rst} | 0 6 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 docs/source/examples_business.rst create mode 100644 docs/source/examples_understand.rst rename docs/source/{examples_business_africa_education.rst => examples_understand_africa_education.rst} (100%) diff --git a/docs/source/examples.rst b/docs/source/examples.rst index 947033450..2c593aa7e 100644 --- a/docs/source/examples.rst +++ b/docs/source/examples.rst @@ -12,13 +12,13 @@ Examples .. grid-item:: .. card:: Business - :link: examples.learn + :link: examples.business :link-type: ref :text-align: center :class-card: custom-card-8 :class-footer: user_guide_footer - 11 Notebooks + 10 Notebooks ^^^^^^^^^^^^^^ Variety of actual buiness use cases. @@ -31,20 +31,20 @@ Examples :class-card: custom-card-8 :class-footer: user_guide_footer - 11 Notebooks + 5 Notebooks ^^^^^^^^^^^^^^ Learn the fundamentals of VerticaPy. .. grid-item:: .. card:: Understand - :link: examples.learn + :link: examples.understand :link-type: ref :text-align: center :class-card: custom-card-8 :class-footer: user_guide_footer - 11 Notebooks + 3 Notebooks ^^^^^^^^^^^^^^ Understand basic data science concepts. diff --git a/docs/source/examples_business.rst b/docs/source/examples_business.rst new file mode 100644 index 000000000..ceee62651 --- /dev/null +++ b/docs/source/examples_business.rst @@ -0,0 +1,23 @@ +.. _examples.business: + + +========= +Business +========= + + + +.. toctree:: + :maxdepth: 1 + + examples_business_base_station + examples_business_battery + examples_business_booking + examples_business_churn + examples_business_credit_card_fraud + examples_business_football + examples_business_insurance + examples_business_movies + examples_business_smart_meters + examples_business_spam + examples_business_spotify diff --git a/docs/source/examples_business_battery.rst b/docs/source/examples_business_battery.rst index 9460e443d..9fc2d38e7 100644 --- a/docs/source/examples_business_battery.rst +++ b/docs/source/examples_business_battery.rst @@ -675,7 +675,8 @@ We can now define the model using those hyperparameters and train it. params.pop("C") if "max_features" in params: params.pop("max_features") - + if "max_leaf_nodes" in params: + params.pop("max_leaf_nodes") vp.drop("btr_lr1") model_rf = LinearRegression(name = "btr_lr1", **params) model_rf.fit( diff --git a/docs/source/examples_learn.rst b/docs/source/examples_learn.rst index dc7bc3a7e..234948b1b 100644 --- a/docs/source/examples_learn.rst +++ b/docs/source/examples_learn.rst @@ -1,13 +1,17 @@ .. _examples.learn: -======= +====== Learn -======= +====== .. toctree:: :maxdepth: 1 + examples_learn_commodities + examples_learn_iris + examples_learn_pokemon + examples_learn_titanic examples_learn_winequality \ No newline at end of file diff --git a/docs/source/examples_understand.rst b/docs/source/examples_understand.rst new file mode 100644 index 000000000..469760554 --- /dev/null +++ b/docs/source/examples_understand.rst @@ -0,0 +1,15 @@ +.. _examples.understand: + + +=========== +Understand +=========== + + + +.. toctree:: + :maxdepth: 1 + + examples_understand_africa_education + examples_understand_amazon + examples_understand_covid19 diff --git a/docs/source/examples_business_africa_education.rst b/docs/source/examples_understand_africa_education.rst similarity index 100% rename from docs/source/examples_business_africa_education.rst rename to docs/source/examples_understand_africa_education.rst