Artificial intelligence - Text Classification (necessary for big homework)

👦👦 A handsome boy, you can call me Love And Program 🖱 ⌨ Personal homepage: Personal homepage of Love And Program 💖💖 If it helps you, I hope the third company 💨💨 Support bloggers preface Recently, I found that my big homework series has been collected crazily. I see, the big homework is coming!! These days, I will introduce several ...

Posted by Fuzzy Wobble on Sat, 21 May 2022 03:40:27 +0300

[tf.keras] official tutorial two functional API

Build a simple model Setup Introduction Training, verification and reasoning Saving and restoring model Use the same layer diagram to define multiple models All models are callable, just like layers Complex graph topology Multiple input multiple output model ResNet Model(toy version) Sharing layer Extension of API: using custom layer Official ...

Posted by roscor on Fri, 20 May 2022 17:57:30 +0300

[record] record the whole process of using tensorflow serving for the first time

After completing the training of the model, it should be deployed to the company's CPU server. In order to solve this problem, Google released TensorFlow (TF) Serving, hoping to solve a series of problems in the deployment of ML model to production. This article does not introduce tensorflow serving, but only records the steps of using TF ser ...

Posted by diddy1234 on Wed, 18 May 2022 10:59:17 +0300

Practice of voice wake-up based on tensorflow

Practice of voice wake-up based on tensorflow Voice wake-up is simply a classification task. The sample is divided into wake-up words and non wake-up words (this time the wake-up word is "hello, xiaogua"). The task of this practice is to classify the given multi segment audio through the training model. In the middle, there are th ...

Posted by britey on Sun, 15 May 2022 12:07:55 +0300

TF2.0 basic method of text classification

This article is compiled from TF2 0 official tutorial( https://www.tensorflow.org/tutorials/keras/text_classification) The example of this article is to use IMDB's comment data for sentimental analysis: Data source address: https://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz 1. Load dataset Use TF keras. preprocessing. text_ datas ...

Posted by show8bbs on Thu, 12 May 2022 02:26:50 +0300

Common functions of Tensorflow2

Cast type Force tensor to this data type tf. Cast (tensor name, dtype = data type) Calculate the maximum and minimum values of elements in the tensor dimension tf. reduce_ Max (tensor name) tf. reduce_ Min (tensor name) import tensorflow as tf x1 = tf.constant([1, 2, 3], dtype=tf.float64) print(x1) x2 = tf.cast(x1, tf.int32) print(x2) pri ...

Posted by PHPycho on Fri, 06 May 2022 13:41:13 +0300

tensorflow.keras builds gan neural network, which can run directly

tensorflow.keras builds gan neural network, which can run directly preface keras is one of the high-level API libraries of tensorflow, with concise code and strong readability. This paper adopts tensorflow keras to implement gan network. The specific principle will not be described too much in this paper, but only as a case exchange # ...

Posted by harman on Thu, 05 May 2022 17:43:27 +0300

[Keras] TensorFlow distributed training

When we have a large number of computing resources, we can make full use of these computing resources by using appropriate distributed strategies, so as to greatly reduce the time of model training. For different usage scenarios, TensorFlow is in TF distribute. Strategy provides us with several distributed strategies, which enable us to train t ...

Posted by Mercenary on Thu, 05 May 2022 15:33:08 +0300

Tensorflow - fast RCNN network (RPN training)

Tensorflow fast RCNN network (RPN training) (II) In Tensorflow - fast RCNN network (I) blog, I simply explained the principle of fast RCNN network. The following blogs will implement the code step by step~ Here, I still want to thank the two leaders for their selfless sharing, otherwise I may not know until now~ Reprint principle article l ...

Posted by cheerio on Thu, 28 Apr 2022 17:19:32 +0300

TensorFlow in simple terms

TensorFlow in simple terms 1, Overview 1. Comparison of common deep learning frameworks 2.TensorFlow introduction TF2. The 0 model uses the latest architecture diagram TensorFlow resource 3. Installation of tensorflow (version 2.0) 4.tf.keras introduction tf.keras and keras API tf.keras dataset 1,The d ...

Posted by nevvermind on Thu, 28 Apr 2022 04:45:35 +0300