Skip to content

Commit e15de06

Browse files
author
Mofan Zhou
committedJul 13, 2016
insert note line
1 parent e4deb58 commit e15de06

40 files changed

+120
-5
lines changed
 

‎numpy&pandas/11_pandas_intro.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6-
6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
79
import pandas as pd
810
import numpy as np
911

‎numpy&pandas/12_selection.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
5-
5+
"""
6+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
7+
"""
68
import pandas as pd
79
import numpy as np
810

‎numpy&pandas/13_set_value.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import pandas as pd
710
import numpy as np
811

‎numpy&pandas/14_nan.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6-
6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
79
import pandas as pd
810
import numpy as np
911

‎numpy&pandas/15_read_to/15_read_to.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
5-
5+
"""
6+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
7+
"""
68
import pandas as pd
79

810
# read from

‎numpy&pandas/16_concat.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import pandas as pd
710
import numpy as np
811

‎sklearnTUT/sk10_cross_validation3.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6-
6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
79
from sklearn.learning_curve import validation_curve
810
from sklearn.datasets import load_digits
911
from sklearn.svm import SVC

‎sklearnTUT/sk11_save.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
from sklearn import svm
710
from sklearn import datasets
811

‎sklearnTUT/sk4_learning_pattern.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
from sklearn import datasets
710
from sklearn.cross_validation import train_test_split
811
from sklearn.neighbors import KNeighborsClassifier

‎sklearnTUT/sk5_datasets.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
from sklearn import datasets
710
from sklearn.linear_model import LinearRegression
811
import matplotlib.pyplot as plt

‎sklearnTUT/sk6_model_attribute_method.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
from sklearn import datasets
710
from sklearn.linear_model import LinearRegression
811

‎sklearnTUT/sk7_normalization.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
from sklearn import preprocessing
710
import numpy as np
811
from sklearn.cross_validation import train_test_split

‎sklearnTUT/sk8_cross_validation/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
from sklearn.datasets import load_iris
710
from sklearn.cross_validation import train_test_split
811
from sklearn.neighbors import KNeighborsClassifier

‎sklearnTUT/sk8_cross_validation/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
from sklearn.datasets import load_iris
710
from sklearn.cross_validation import train_test_split
811
from sklearn.neighbors import KNeighborsClassifier

‎sklearnTUT/sk9_cross_validation2.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
from sklearn.learning_curve import learning_curve
710
from sklearn.datasets import load_digits
811
from sklearn.svm import SVC

‎tensorflowTUT/tensorflow10_def_add_layer.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710

811

‎tensorflowTUT/tensorflow11_build_network.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811

‎tensorflowTUT/tensorflow12_plut_result.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811
import matplotlib.pyplot as plt

‎tensorflowTUT/tensorflow6_session.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710

811
matrix1 = tf.constant([[3, 3]])

‎tensorflowTUT/tensorflow7_variable.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710

811
state = tf.Variable(0, name='counter')

‎tensorflowTUT/tensorflow8_feeds.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710

811
input1 = tf.placeholder(tf.float32)

‎tensorflowTUT/tf11_build_network/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811

‎tensorflowTUT/tf11_build_network/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811
import matplotlib.pyplot as plt

‎tensorflowTUT/tf12_plot_result/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811
import matplotlib.pyplot as plt

‎tensorflowTUT/tf12_plot_result/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811
import matplotlib.pyplot as plt

‎tensorflowTUT/tf14_tensorboard/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710

811

‎tensorflowTUT/tf14_tensorboard/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710

811

‎tensorflowTUT/tf15_tensorboard/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811

‎tensorflowTUT/tf15_tensorboard/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811

‎tensorflowTUT/tf16_classification/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710

811

‎tensorflowTUT/tf16_classification/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
from tensorflow.examples.tutorials.mnist import input_data
811
# number 1 to 10 data

‎tensorflowTUT/tf17_dropout/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
from sklearn.datasets import load_digits
811
from sklearn.cross_validation import train_test_split

‎tensorflowTUT/tf17_dropout/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
from sklearn.datasets import load_digits
811
from sklearn.cross_validation import train_test_split

‎tensorflowTUT/tf18_CNN2/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
from tensorflow.examples.tutorials.mnist import input_data
811
# number 1 to 10 data

‎tensorflowTUT/tf18_CNN2/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
from tensorflow.examples.tutorials.mnist import input_data
811
# number 1 to 10 data

‎tensorflowTUT/tf18_CNN3/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
from tensorflow.examples.tutorials.mnist import input_data
811
# number 1 to 10 data

‎tensorflowTUT/tf18_CNN3/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
from tensorflow.examples.tutorials.mnist import input_data
811
# number 1 to 10 data

‎tensorflowTUT/tf19_saver.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811

‎tensorflowTUT/tf5_example2/for_you_to_practice.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811

‎tensorflowTUT/tf5_example2/full_code.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
44
# Youku video tutorial: http://i.youku.com/pythontutorial
55

6+
"""
7+
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
8+
"""
69
import tensorflow as tf
710
import numpy as np
811

0 commit comments

Comments
 (0)
Please sign in to comment.