answer multi-option questions, use softmax function, the promotion of logarithmic probability regression on multiple possible different values.The return value of the function is a probability vector of C components, and each component corresponds to an output category probability.The component is probability, and the sum of the C components is always 1.Each sample must belong to an output category and all possible samples are overwritten.Component sum is less than 1, there
Load the structure and weight of the first 13 layers of VGG16, define the final full connection layer by yourself, then freeze the first 13 layers, and train the model using small data sets. seems simple, encountered many problems in the middle, said too much is tears, is because entangled in online examples, too dead-headed. csdn has a very detailed post, I ran inside the example has been reported wrong:
Classification and tagging are two functions of the blog system.Classification refers to user-defined categories and categorizing blog posts.This is a natural way to organize articles, so it has become the basic function of the blog system.Later, articles on the internet developed a convenient and friendly feature-Label or Tag.The label is equivalent to the keywords of traditional articles and the index of books, indicating a certain content or feature contained in the articles.
decoratorIntroduction: To modify the method of a class, the decorator mode is used when the class already exists.Decorator and Decorator to Realize the Same InterfaceThe decorator will declare a constructor with the decorator interface as its inputdecorators, want to transform the method of their own implementation, don't want to transform the method using the method of the decoratorWhen using, there is already a decorated object, new a decorator, to pass
Run lmdb_lstm.py runs the lstm example first because lstm is required. 1. After downloading the official website, run lmdb_lstm.py directly.Always prompt cannot download, open the program to see, through load_data to download data, but this data cannot be downloaded online, resulting in running impassability.print("Loading data...")(X_train, y_train), (X_test, y_test) = imdb.load_data(nb_words=max_features, test_split=0.2) solution: change the path in lmdb.pyAs shown in the following edge, give the path directly.# path = get_file(path, origin="https://s3.amazonaws.com/text-datasets/imdb.pkl")path
Recently, I've been looking at relevant contents of Image Capture. Image Capture is simply talking by looking at pictures. When I input a picture, the output is a sentence. I mainly read two articles by Duke in Zhihu, two articles by Google on NIC model, and configured neutraltalk, neutraltalk2.Tensorflow/im2txt(NIC) environment, ran the inference of neutraltalk and neutraltalk2, and im2txt training.
summary paper+open source project:Image / Video Captioning