Use Bidirectional LSTM for Chinese Word Segmentation Read Data This data is based on the 2014 People's Daily Marked Corpus and has been processed simply.Each behavior has a short sentence, and the word segmentation method is maximum segmentation, and the format is similar to: use | bidirectional LSTM| build | Chinese | word segmentation model | import numpy as np DATA_PATH = r'E:\python\demos\news-splite.txt' SENTENSE_NUM = 200000 #要读取
# -*- coding: utf-8 -*- """单标签多分类问题之新闻主题分类.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/18TqrbGYm2J-jmR89KZHOa7vxbAr4eOz2 ### 问题解释 每个数据点只能划分到一个类别，但是类别总数大于2个，
After several days of hard work, I successfully trained my own data set and tested a single picture.
val accuracy is about 0.91 during training.It seems that the effect is still satisfactory, and whether it has been fitted has not been determined.
In the training process, the most annoying thing is to handle the file path and file storage location.
1. ImageNet Classification Section:
caffe is an example folder under the CAFFE (Convolutional Architecture for Fast Feature Embedding) model.
1. Introduction to keras
Keras is an advanced neural network API written in Python, which can run with TensorFlow, CNTK, or Theano as the back end.Keras's development focus is to support rapid experiments.It is the key to do a good job of research to be able to convert your ideas into experimental results with minimal delay.
If you have the following requirements, please choose Keras:
-Allows simple and fast prototype design (user-friendly, highly modular, extensible).
Whether the coming big data era or artificial intelligence era, or the era when traditional industries use artificial intelligence to process big data on the cloud, as a programmer with ideals and pursuits, will he feel out immediately if he does not understand the ultra-hot technology of Deep Learning?Now it's time to save your life. The series of articles in "Zero Foundation Beginner Deep Learning" aims to help you, who loves programming, reach the entry level from zero foundation.
Main Contents:1. Working Principle of knn2. knn development process3. Features of knn Algorithm4. Project Actual Combat: knn Realize Three Classifications of iris The Irises Data Set 1, KNN working principle1. Assume that there is a labeled sample data set (training sample set), which contains the corresponding relationship between each data and the classification to which it belongs.2. After inputting new data without labels, compare each feature of the new data
original link: https://github.com/fastforward labs/keras-hello-world/blob/master/kerashelloworld.ipynb original title: "helloworld" inkeras All the code in this article is based on python2. The editor used is ipython notebook, which is an entry level. Advanced Neural Network Library enables developers to quickly build neural network models without worrying about the numerical details of floating-point operations, tensor algebra and GPU programming. Keras is an advanced neural network library, which is based on Theano or the backends
Let's write a classification neural network without regularization in python.Traditional classification methods include clustering, LR logical regression, traditional SVM, LSSVM, etc.LR and svm are two classifiers, and multiple lrs or svm can be combined to form multiple classifiers.The multi-classification neural network uses softmax+crossthreshold to form the final multi-classification cost function j.Why to use this cost function may require knowledge of generalized linear models.Simply put, it is to maximize the entropy of the classification function.