- 博客(4)
- 收藏
- 关注
原创 Go 和 Python 基本操作对比
字符串替换 replace go c := strings.Replace("aaabbbaaabb", "bb", "aa" ,1) // str, old, new ,替换第几个 输出: aaaaabaaabb python c = "aaabbbaaabb".replace('b
2019-01-22 16:10:35
1043
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
159
原创 生存预测 : kaggle titanic 泰坦尼克号 逻辑回归(Logistic回归) tensorflow版
###目录 test.csv train.csv titanic.py ###数据集 https://www.kaggle.com/c/titanic/data ###titanic.py import tensorflow as tf import pandas as pd TRAIN_PATH = "train.csv" TEST_PATH = "test.csv" LEARNING_R...
2019-01-16 21:54:08
683
原创 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
165
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅