Skip to content

Commit

Permalink
deploy: c5c30c9
Browse files Browse the repository at this point in the history
  • Loading branch information
reveurmichael committed Oct 12, 2023
1 parent 5960bda commit 59baaaf
Show file tree
Hide file tree
Showing 324 changed files with 24,938 additions and 21,980 deletions.
Binary file removed _images/aml-1.PNG
Binary file not shown.
Binary file removed _images/aml-2.PNG
Binary file not shown.
Binary file removed _images/aml-3.PNG
Binary file not shown.
Binary file removed _images/aml-4.PNG
Binary file not shown.
Binary file removed _images/binary-multiclass.png
Binary file not shown.
Binary file removed _images/cheatsheet.png
Binary file not shown.
Binary file removed _images/cloud-picture.jpeg
Binary file not shown.
Binary file removed _images/cluster-1.PNG
Binary file not shown.
Binary file removed _images/cluster-2.PNG
Binary file not shown.
Binary file removed _images/cluster-3.PNG
Binary file not shown.
Binary file removed _images/comparison.png
Binary file not shown.
Binary file removed _images/compute-instance-1.PNG
Binary file not shown.
Binary file removed _images/consumption-1.PNG
Binary file not shown.
Binary file removed _images/dataset-1.PNG
Binary file not shown.
Binary file removed _images/dataset-2.PNG
Binary file not shown.
Binary file removed _images/dataset-3.PNG
Binary file not shown.
Binary file removed _images/deploy-1.PNG
Binary file not shown.
Binary file removed _images/deploy-2.PNG
Binary file not shown.
Binary file removed _images/deploy-3.PNG
Binary file not shown.
Binary file added _images/introduction-to-classification_22_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/introduction-to-classification_28_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/introduction-to-classification_30_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/introduction-to-classification_32_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/introduction-to-classification_34_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/introduction-to-classification_36_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/kernel-method_11_0.png
Binary file modified _images/kernel-method_15_0.png
Binary file modified _images/kernel-method_19_0.png
Binary file modified _images/kernel-method_26_0.png
File renamed without changes
Binary file removed _images/map.png
Diff not rendered.
Binary file removed _images/notebook-1.PNG
Diff not rendered.
Binary file removed _images/notebook-2.PNG
Diff not rendered.
Binary file removed _images/pinch.png
Diff not rendered.
Binary file removed _images/project-schema.png
Diff not rendered.
Binary file removed _images/solvers.png
Diff not rendered.
Binary file removed _images/thai-food.jpg
Diff not rendered.
Binary file modified _images/tools-of-the-trade_13_0.png
Binary file modified _images/visualization-relationships_12_0.png
Binary file modified _images/visualization-relationships_16_0.png
Binary file modified _images/visualization-relationships_18_1.png
Binary file modified _images/visualization-relationships_20_0.png
Binary file removed _images/workspace-1.PNG
Diff not rendered.
Binary file removed _images/workspace-2.PNG
Diff not rendered.
Binary file removed _images/workspace-3.PNG
Diff not rendered.
Binary file removed _images/workspace-4.PNG
Diff not rendered.
Binary file removed _images/workspace-5.PNG
Diff not rendered.
Binary file removed _images/workspace-6.PNG
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "58b91c67",
"id": "64207a31",
"metadata": {},
"source": [
"# Create a regression model\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "604ca0aa",
"id": "6c9cc1bf",
"metadata": {},
"source": [
"# Exploring visualizations\n",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# ML logistic regression - assignment 2\n",
"\n",
"## Logistic Regression from scratch"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"vscode": {
"languageId": "plaintext"
}
},
"outputs": [],
"source": [
"class MyOwnLogisticRegression:\n",
" def __init__(self, learning_rate=0.001, n_iters=1000):\n",
" self.lr = learning_rate\n",
" self.n_iters = n_iters\n",
" self.weights = None\n",
" self.bias = None\n",
"\n",
" def fit(self, X, y):\n",
" n_samples, n_features = X.shape\n",
"\n",
" # init parameters\n",
" self.weights = np.zeros(n_features)\n",
" self.bias = 0\n",
"\n",
" # gradient descent\n",
" for _ in range(self.n_iters):\n",
" # approximate y with linear combination of weights and x, plus bias\n",
" linear_model = np.dot(X, self.weights) + self.bias\n",
" # apply sigmoid function\n",
" y_predicted = self._sigmoid(linear_model)\n",
"\n",
" # compute gradients\n",
" dw = (1 / n_samples) * np.dot(X.T, (y_predicted - y))\n",
" db = (1 / n_samples) * np.sum(y_predicted - y)\n",
" # update parameters\n",
" self.weights -= self.lr * dw\n",
" self.bias -= self.lr * db\n",
"\n",
" def predict(self, X):\n",
" linear_model = np.dot(X, self.weights) + self.bias\n",
" y_predicted = self._sigmoid(linear_model)\n",
" y_predicted_cls = [1 if i > 0.5 else 0 for i in y_predicted]\n",
" return np.array(y_predicted_cls)\n",
"\n",
" def _sigmoid(self, x):\n",
" return 1 / (1 + np.exp(-x))"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
},
"vscode": {
"interpreter": {
"hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49"
}
}
},
"nbformat": 4,
"nbformat_minor": 4
}
2 changes: 1 addition & 1 deletion _sources/assignments/ml-fundamentals/parameter-play.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "c4fa73d6",
"id": "ce4ea64b",
"metadata": {},
"source": [
"# Parameter play\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "29f1affc",
"id": "b80ab429",
"metadata": {},
"source": [
"# Regression with Scikit-learn\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "0de76a9a",
"id": "196ef3c3",
"metadata": {},
"source": [
"# Retrying some regression\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,64 @@
"cells": [
{
"cell_type": "markdown",
"id": "2f4729e0",
"id": "33887561-a556-495e-8744-a192d65a947d",
"metadata": {
"tags": [
"hide-cell"
]
},
"source": [
"---\n",
"jupytext:\n",
" cell_metadata_filter: -all\n",
" formats: md:myst\n",
" text_representation:\n",
" extension: .md\n",
" format_name: myst\n",
" format_version: 0.13\n",
" jupytext_version: 1.11.5\n",
"kernelspec:\n",
" display_name: Python 3\n",
" language: python\n",
" name: python3"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "53182f7d-455f-4fd6-b9e8-75bbe9d32ed0",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import os\n",
"import sys\n",
"!{sys.executable} -m pip install --quiet pandas scikit-learn numpy matplotlib jupyterlab_myst ipython"
]
},
{
"cell_type": "markdown",
"id": "d51de614",
"metadata": {},
"source": [
"# Data Science in the cloud\n",
"\n",
"![cloud-picture](../../../images/cloud-picture.jpeg)\n",
"![cloud-picture](https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/cloud-picture.jpeg)\n",
"\n",
"> Photo by [Jelleke Vanooteghem](https://unsplash.com/@ilumire) from [Unsplash](https://unsplash.com/s/photos/cloud?orientation=landscape)\n",
"\n",
"When it comes to doing data science with big data, the cloud can be a game changer. In the next three sections, we are going to see what the cloud is and why it can be very helpful. We are also going to explore a heart failure dataset and build a model to help assess the probability of someone having heart failure. We will use the power of the cloud to train, deploy and consume a model in two different ways. One way uses only the user interface in a Low code/No code fashion, and the other way uses the Azure Machine Learning Software Developer Kit (Azure ML SDK).\n",
"\n",
"![project-schema](../../../images/project-schema.png)\n",
"\n",
"---\n",
"![project-schema](https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/project-schema.png)\n",
"\n",
"```{tableofcontents}\n",
"```"
"---\n"
]
}
],
"metadata": {
"jupytext": {
"cell_metadata_filter": "-all",
"formats": "md:myst",
"text_representation": {
"extension": ".md",
"format_name": "myst",
"format_version": 0.13,
"jupytext_version": "1.11.5"
}
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -48,12 +73,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
},
"source_map": [
14
]
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
}

This file was deleted.

Loading

0 comments on commit 59baaaf

Please sign in to comment.