commit 2
This commit is contained in:
parent
ba4a6f1402
commit
fece83fa1a
@ -4,10 +4,9 @@
|
|||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="0ceb130e-88da-4a20-aad6-17f5ab4226ac" name="Changes" comment="">
|
<list default="true" id="0ceb130e-88da-4a20-aad6-17f5ab4226ac" name="Changes" comment="commit 1">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/IIS_2023_1.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/IIS_2023_1.iml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/istyukov_timofey_lab1/lab1.py" beforeDir="false" afterPath="$PROJECT_DIR$/istyukov_timofey_lab1/lab1.py" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@ -43,29 +42,50 @@
|
|||||||
<option name="hideEmptyMiddlePackages" value="true" />
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
<option name="showLibraryContents" value="true" />
|
<option name="showLibraryContents" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">{
|
<component name="PropertiesComponent"><![CDATA[{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
"WebServerToolWindowFactoryState": "false",
|
"WebServerToolWindowFactoryState": "false",
|
||||||
"git-widget-placeholder": "senkin__alexander__lab__1",
|
"git-widget-placeholder": "senkin__alexander__lab__1",
|
||||||
"last_opened_file_path": "D:/ulstukek/Course4/IIS/labs",
|
"last_opened_file_path": "D:/ulstukek/Course4/IIS/labs",
|
||||||
"node.js.detected.package.eslint": "true",
|
"node.js.detected.package.eslint": "true",
|
||||||
"node.js.detected.package.tslint": "true",
|
"node.js.detected.package.tslint": "true",
|
||||||
"node.js.selected.package.eslint": "(autodetect)",
|
"node.js.selected.package.eslint": "(autodetect)",
|
||||||
"node.js.selected.package.tslint": "(autodetect)",
|
"node.js.selected.package.tslint": "(autodetect)",
|
||||||
"nodejs_package_manager_path": "npm",
|
"nodejs_package_manager_path": "npm",
|
||||||
"settings.editor.selected.configurable": "reference.settings.ide.settings.new.ui",
|
"settings.editor.selected.configurable": "preferences.sourceCode",
|
||||||
"vue.rearranger.settings.migration": "true"
|
"vue.rearranger.settings.migration": "true"
|
||||||
}
|
}
|
||||||
}</component>
|
}]]></component>
|
||||||
<component name="RecentsManager">
|
<component name="RecentsManager">
|
||||||
<key name="CopyFile.RECENT_KEYS">
|
<key name="CopyFile.RECENT_KEYS">
|
||||||
<recent name="D:\ulstukek\Course4\IIS\IISLabs\IIS_2023_1\zavrazhnova_svetlana_lab_3" />
|
<recent name="D:\ulstukek\Course4\IIS\IISLabs\IIS_2023_1\zavrazhnova_svetlana_lab_3" />
|
||||||
<recent name="D:\ulstukek\Course4\IIS\IISLabs\IIS_2023_1\zavrazhnova_svetlana_lab_1" />
|
<recent name="D:\ulstukek\Course4\IIS\IISLabs\IIS_2023_1\zavrazhnova_svetlana_lab_1" />
|
||||||
</key>
|
</key>
|
||||||
</component>
|
</component>
|
||||||
<component name="RunManager" selected="Python.zavrazhnova_svetlana_lab3_2">
|
<component name="RunManager" selected="Python.lab1">
|
||||||
|
<configuration name="lab1" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
||||||
|
<module name="IIS_2023_1" />
|
||||||
|
<option name="INTERPRETER_OPTIONS" value="" />
|
||||||
|
<option name="PARENT_ENVS" value="true" />
|
||||||
|
<envs>
|
||||||
|
<env name="PYTHONUNBUFFERED" value="1" />
|
||||||
|
</envs>
|
||||||
|
<option name="SDK_HOME" value="E:\Programms\Python\python.exe" />
|
||||||
|
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/istyukov_timofey_lab1" />
|
||||||
|
<option name="IS_MODULE_SDK" value="false" />
|
||||||
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||||
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||||
|
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/istyukov_timofey_lab1/lab1.py" />
|
||||||
|
<option name="PARAMETERS" value="" />
|
||||||
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||||
|
<option name="EMULATE_TERMINAL" value="false" />
|
||||||
|
<option name="MODULE_MODE" value="false" />
|
||||||
|
<option name="REDIRECT_INPUT" value="false" />
|
||||||
|
<option name="INPUT_FILE" value="" />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
<configuration name="zavrazhnova_svetlana_lab3_2" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
<configuration name="zavrazhnova_svetlana_lab3_2" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
||||||
<module name="IIS_2023_1" />
|
<module name="IIS_2023_1" />
|
||||||
<option name="INTERPRETER_OPTIONS" value="" />
|
<option name="INTERPRETER_OPTIONS" value="" />
|
||||||
@ -132,13 +152,19 @@
|
|||||||
<option name="INPUT_FILE" value="" />
|
<option name="INPUT_FILE" value="" />
|
||||||
<method v="2" />
|
<method v="2" />
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<list>
|
||||||
|
<item itemvalue="Python.lab1" />
|
||||||
|
<item itemvalue="Python.zavrazhnova_svetlana_lab3_2" />
|
||||||
|
<item itemvalue="Python.zavrazhnova_svetlana_lab_2" />
|
||||||
|
<item itemvalue="Python.zavrazhnova_svetlana_lab_3_1" />
|
||||||
|
</list>
|
||||||
<recent_temporary>
|
<recent_temporary>
|
||||||
<list>
|
<list>
|
||||||
|
<item itemvalue="Python.lab1" />
|
||||||
<item itemvalue="Python.zavrazhnova_svetlana_lab_3_1" />
|
<item itemvalue="Python.zavrazhnova_svetlana_lab_3_1" />
|
||||||
<item itemvalue="Python.zavrazhnova_svetlana_lab_2" />
|
<item itemvalue="Python.zavrazhnova_svetlana_lab_2" />
|
||||||
<item itemvalue="Python.zavrazhnova_svetlana_lab3_2" />
|
<item itemvalue="Python.zavrazhnova_svetlana_lab3_2" />
|
||||||
<item itemvalue="Python.zavrazhnova_svetlana_lab3_2" />
|
<item itemvalue="Python.zavrazhnova_svetlana_lab3_2" />
|
||||||
<item itemvalue="Python.zavrazhnova_svetlana_lab_3_1" />
|
|
||||||
</list>
|
</list>
|
||||||
</recent_temporary>
|
</recent_temporary>
|
||||||
</component>
|
</component>
|
||||||
@ -153,6 +179,14 @@
|
|||||||
<workItem from="1697735437405" duration="1706000" />
|
<workItem from="1697735437405" duration="1706000" />
|
||||||
<workItem from="1697740229646" duration="3802000" />
|
<workItem from="1697740229646" duration="3802000" />
|
||||||
</task>
|
</task>
|
||||||
|
<task id="LOCAL-00001" summary="commit 1">
|
||||||
|
<created>1702203771661</created>
|
||||||
|
<option name="number" value="00001" />
|
||||||
|
<option name="presentableId" value="LOCAL-00001" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1702203771661</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="2" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
@ -173,6 +207,13 @@
|
|||||||
</list>
|
</list>
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry key="user">
|
||||||
|
<value>
|
||||||
|
<list>
|
||||||
|
<option value="*" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
</State>
|
</State>
|
||||||
@ -180,8 +221,24 @@
|
|||||||
</entry>
|
</entry>
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
|
<option name="RECENT_FILTERS">
|
||||||
|
<map>
|
||||||
|
<entry key="User">
|
||||||
|
<value>
|
||||||
|
<list>
|
||||||
|
<RecentGroup>
|
||||||
|
<option name="FILTER_VALUES">
|
||||||
|
<option value="*" />
|
||||||
|
</option>
|
||||||
|
</RecentGroup>
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
</map>
|
||||||
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
<component name="VcsManagerConfiguration">
|
||||||
<SUITE FILE_PATH="coverage/PyCharmProjects$senkin_alexander_lab_1.coverage" NAME="senkin_alexander_lab_1 Coverage Results" MODIFIED="1697744262965" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/senkin_alexander_lab_1" />
|
<MESSAGE value="commit 1" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="commit 1" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -9,12 +9,11 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from sklearn.datasets import make_classification
|
from sklearn.datasets import make_classification
|
||||||
from sklearn.linear_model import LinearRegression, Perceptron, Ridge
|
from sklearn.linear_model import LinearRegression, Perceptron, Ridge
|
||||||
from matplotlib import pyplot as plt
|
|
||||||
from matplotlib.colors import ListedColormap
|
|
||||||
from sklearn.model_selection import train_test_split
|
from sklearn.model_selection import train_test_split
|
||||||
from sklearn.metrics import mean_absolute_error, mean_squared_error, accuracy_score, balanced_accuracy_score
|
|
||||||
from sklearn.pipeline import make_pipeline
|
from sklearn.pipeline import make_pipeline
|
||||||
from sklearn.preprocessing import PolynomialFeatures
|
from sklearn.preprocessing import PolynomialFeatures
|
||||||
|
from matplotlib import pyplot as plt
|
||||||
|
from matplotlib.colors import ListedColormap
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -48,10 +47,7 @@ def my_linear_regression(X_train, X_test, y_train, y_test):
|
|||||||
# вывод в консоль
|
# вывод в консоль
|
||||||
print()
|
print()
|
||||||
print('===> Линейная регрессия <===')
|
print('===> Линейная регрессия <===')
|
||||||
print('Оценка точности:')
|
print('Оценка точности: ', lin_reg_model.score(X_train, y_train))
|
||||||
print('MAE:', mean_absolute_error(y_test, y_pred))
|
|
||||||
print('MSE:', mean_squared_error(y_test, y_pred))
|
|
||||||
print()
|
|
||||||
|
|
||||||
# вывод в график
|
# вывод в график
|
||||||
plt.title('Линейная регрессия')
|
plt.title('Линейная регрессия')
|
||||||
@ -71,10 +67,7 @@ def my_perceptron(X_train, X_test, y_train, y_test):
|
|||||||
# вывод в консоль
|
# вывод в консоль
|
||||||
print()
|
print()
|
||||||
print('===> Персептрон <===')
|
print('===> Персептрон <===')
|
||||||
print('Оценка точности:')
|
print('Оценка точности: ', perceptron_model.score(X_train, y_train))
|
||||||
print('По тренировочным данным: ', perceptron_model.score(X_train, y_train))
|
|
||||||
print('По тестовым данным: ', accuracy_score(y_test, y_pred))
|
|
||||||
print()
|
|
||||||
|
|
||||||
# вывод в график
|
# вывод в график
|
||||||
plt.title('Персептрон')
|
plt.title('Персептрон')
|
||||||
@ -94,10 +87,7 @@ def my_poly_ridge(X_train, X_test, y_train, y_test):
|
|||||||
# вывод в консоль
|
# вывод в консоль
|
||||||
print()
|
print()
|
||||||
print('===> Гребневая полиномиальная регрессия <===')
|
print('===> Гребневая полиномиальная регрессия <===')
|
||||||
print('Оценка точности:')
|
print('Оценка точности: ', poly_rige_model.score(X_train, y_train))
|
||||||
print('MAE:', mean_absolute_error(y_test, y_pred))
|
|
||||||
print('MSE:', mean_squared_error(y_test, y_pred))
|
|
||||||
print()
|
|
||||||
|
|
||||||
# вывод в график
|
# вывод в график
|
||||||
plt.title('Гребневая полиномиальная регрессия')
|
plt.title('Гребневая полиномиальная регрессия')
|
||||||
|
Loading…
Reference in New Issue
Block a user