1 Star 1 Fork 0

闻香茶主 / BigData2023

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
testpy_notebook.py 851 Bytes
一键复制 编辑 原始数据 按行查看 历史
闻香茶主 提交于 2023-11-15 16:17 . 20231115
#%%[markdown]
'''
Author:zeng
Date: 2021-09-08 20:39:56
LastEditTime: 2021-09-12 10:59:19
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath:
'''
#%%
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
x = np.linspace(0, 20, 100)
plt.plot(x,np.sin(x))
#%%
a = 1
b = 1
c = 1
for a in range(100) :
for b in range(100):
for c in range(100):
if b!=a and b!=c:
d1=a*b*c
d2=a+b+c
if d1==d2 :
print('a*b*c=a+b+c', 'a=', a, 'b=', b, 'c=', c)
# %%
from sklearn.datasets import load_iris
from sklearn import tree
clf = tree.DecisionTreeClassifier()
iris = load_iris()
clf = clf.fit(iris.data, iris.target)
dot=tree.export_graphviz(clf)
# %%
import graphviz
graph = graphviz.Source(dot)
graph.render("iris")
graph.view()
# %%
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/best_tea/big-data2023.git
git@gitee.com:best_tea/big-data2023.git
best_tea
big-data2023
BigData2023
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891