原创 python matplotlib畫圖 1
import numpy as np import matplotlib.pyplot as plt # Compute the x and y coordinates for points on sine and cosine cu
原创 python numpy 1
import numpy as np a = np.array([1, 2, 3]) # Create a rank 1 array print(type(a)) # Prints "<class 'nump
原创 tensorflow mnist 1
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import keras.backend.tensorflow_bac
原创 opencv python播放視頻和保存視頻
# -*- coding: utf-8 -*- import numpy as np import cv2 def playVideo(videoFile): cap = cv2.VideoCapture(videoFile)
原创 Python OpenCV version
#!/usr/bin/env python ''' prints OpenCV version Usage: opencv_version.py [<params>] params: --build:
原创 tensorflow mnist 2
from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf import keras.backend.tensorflow_bac
原创 python opencv畫圖
import numpy as np import cv2 def drawPic(): img=np.zeros((512,512,3), np.uint8) # Draw a diagonal blue line with
原创 keras Classifier 分類
import numpy as np np.random.seed(1337) # for reproducibility from keras.models import Sequential from keras.layers i
原创 python線性迴歸 1
# -*- coding: utf-8 -*- import numpy as np from sklearn import linear_model from sklearn.linear_model import LinearReg
原创 tensorflow 1
import tensorflow as tf import numpy as np import matplotlib.pylab as plt def tfDemo1(): #create data x_data = np.r
原创 mxnet mnist
import numpy as np import os import urllib import urllib.request import gzip import struct import matplotlib.pyplot as
原创 tesorflow 1
# -*- coding: utf-8 -*- import numpy as np import tensorflow as tf from sklearn.datasets import load_digits from skle
原创 mxnet mnist 2
import mxnet as mx import numpy as np import logging logging.getLogger().setLevel(logging.INFO) fname = mx.test_utils
原创 tensorflow 2
import tensorflow as tf import numpy as np def test1(): #create data x_data=np.random.rand(100).astype(np.flo
原创 fuzzy cmeans
from __future__ import division, print_function import numpy as np from numpy.linalg import cholesky import matplotlib