- 博客(4)
- 收藏
- 关注
原创 Go 和 Python 基本操作对比
字符串替换 replacegoc := strings.Replace("aaabbbaaabb", "bb", "aa" ,1) // str, old, new ,替换第几个输出: aaaaabaaabbpythonc = "aaabbbaaabb".replace('b
2019-01-22 16:10:35 985 1
原创 Random Forest
""" Random Forest.Implement Random Forest algorithm with TensorFlow, and apply it to classify handwritten digit images. This example is using the MNIST database of handwritten digits as training s...
2019-01-16 21:55:05 123
原创 生存预测 : kaggle titanic 泰坦尼克号 逻辑回归(Logistic回归) tensorflow版
###目录test.csvtrain.csvtitanic.py###数据集https://www.kaggle.com/c/titanic/data###titanic.pyimport tensorflow as tfimport pandas as pdTRAIN_PATH = "train.csv"TEST_PATH = "test.csv"LEARNING_R...
2019-01-16 21:54:08 612
原创 python 常用排序算法
a = [5, 3, 4, 1, 2, 2]#冒泡排序def bubble(a): """ 冒泡排序 时间复杂度o(n2) 比较相邻的元素大小,将小的前移,大的后移 :param a:list :return: sorted(a) """ num
2019-01-16 20:45:04 134
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人