0% found this document useful (0 votes)
7 views

Aula7_Myself

aula 7 sobre machine learning
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Aula7_Myself

aula 7 sobre machine learning
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

{

"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "34114454",
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import math\n",
"\n",
"from sklearn.model_selection import train_test_split\n",
"\n",
"from sklearn.linear_model import LinearRegression, Ridge, Lasso, ElasticNet,
LogisticRegression\n",
"from sklearn.preprocessing import PolynomialFeatures\n",
"\n",
"from sklearn.pipeline import Pipeline\n",
"from sklearn.metrics import mean_squared_error, mean_absolute_error,
accuracy_score\n",
"\n",
"from sklearn.datasets import make_moons\n",
"from sklearn.inspection import DecisionBoundaryDisplay"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "9691e4a2",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"\\nHELP W/ CMD:\\n\\n1. np.random.rand(a,b,..) => Create an array of the
given shape and populate it with random\\nsamples from a uniform distribution over
[0, 1)\\nthis function doesn't need any argument but with no arguments, it
generates a randon number in [0,1)\\nand with arguments it generates an array of
that size, it can even be a vector, matrix, tensor...\\n\\n\""
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"'''\n",
"HELP W/ CMD:\n",
"\n",
"1. np.random.rand(a,b,..) => Create an array of the given shape and populate
it with random\n",
"samples from a uniform distribution over [0, 1)\n",
"this function doesn't need any argument but with no arguments, it generates a
randon number in [0,1)\n",
"and with arguments it generates an array of that size, it can even be a
vector, matrix, tensor...\n",
"\n",
"'''"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "92679d98",
"metadata": {},
"outputs": [],
"source": []
}
],
"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.10.7"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

You might also like