artificial-intelligence

Converting zoo object into a weekly time series

冷暖自知 提交于 2021-01-07 02:46:03
问题 I am working on building a time series in R programming language. I m having a zoo object which is follows: I 'd like to convert this into a weekly time series data for analysis and typed in the following code tt2<-as.ts(zz,freq=365.25/7,start=decimal_date(ymd("2018-01-01"))) tt2[is.na(tt2)]<-0 However, I get the following output: Time Series: Start = 17538 End = 18532 Frequency = 0.142857142857143 While I'd like to see the output in line with something like this: Time Series: Start = c(2018

ML.NET Show which score relates to which label

南笙酒味 提交于 2021-01-04 09:09:27
问题 With ML.Net I am using a classifier for text interpretation. The prediction has a score column as float[] and a predicted label. This works in that the highest score relates to the predicted label, but the other scores are just floats in no particular order. How do I know which score relates to which label? How can I see what the second highest weighted label? For example, I get this back: 0.00005009 0.00893076 0.1274763 0.6209787 0.2425644 The 0.6 is my predicted label, but I also need to

How to map input image with neurons in first conv layer in CNN?

不想你离开。 提交于 2021-01-01 04:22:11
问题 I just completed ANN course and started learning CNN. I have basic understanding of padding and stride operation works in CNN. But have difficultly in mapping input image with neurons in first conv layer but i have basic understanding of how input features are mapped to first hidden layer in ANN. What is best way of understanding mapping between input image with neurons in first conv layer? How can I clarify my doubts about the below code example? Code is taken from DL course in Coursera. def

How to map input image with neurons in first conv layer in CNN?

China☆狼群 提交于 2021-01-01 04:21:29
问题 I just completed ANN course and started learning CNN. I have basic understanding of padding and stride operation works in CNN. But have difficultly in mapping input image with neurons in first conv layer but i have basic understanding of how input features are mapped to first hidden layer in ANN. What is best way of understanding mapping between input image with neurons in first conv layer? How can I clarify my doubts about the below code example? Code is taken from DL course in Coursera. def

How to extract the layers from an image (jpg,png,etc)

百般思念 提交于 2020-12-30 07:00:46
问题 Given an image such as the CakePHP logo, how can this image be converted back into a PSD with the layers. As a human, I can easily work out how to translate this back to a PSD with layers. I can tell that the background is a circular shape with star edges. So the circular star part is at the back, the cake image is on top of this and the words CakePHP is over all of these two images. I can use Photoshop/Gimp tools to separate these images into three images and fill in the areas in-between.

How to extract the layers from an image (jpg,png,etc)

我是研究僧i 提交于 2020-12-30 06:59:51
问题 Given an image such as the CakePHP logo, how can this image be converted back into a PSD with the layers. As a human, I can easily work out how to translate this back to a PSD with layers. I can tell that the background is a circular shape with star edges. So the circular star part is at the back, the cake image is on top of this and the words CakePHP is over all of these two images. I can use Photoshop/Gimp tools to separate these images into three images and fill in the areas in-between.

Applying saved NEAT-Python Genome to test environment after training

淺唱寂寞╮ 提交于 2020-12-13 03:18:19
问题 I have used some NEAT algorithms to code my own AI for some easy games like flappy bird. Everything works fine and I know what is going on. The problem is I do not know what to do with the result. The AI learns something and I want to save that progress. TechwithTim YouTuber said something about using pickle, which worked for me when I saved it. I can even load it from the file, but that is where I end. I don't know what to do next to start just one bird to play the game with the knowledge of

Applying saved NEAT-Python Genome to test environment after training

扶醉桌前 提交于 2020-12-13 03:18:06
问题 I have used some NEAT algorithms to code my own AI for some easy games like flappy bird. Everything works fine and I know what is going on. The problem is I do not know what to do with the result. The AI learns something and I want to save that progress. TechwithTim YouTuber said something about using pickle, which worked for me when I saved it. I can even load it from the file, but that is where I end. I don't know what to do next to start just one bird to play the game with the knowledge of

Backpropagation in an Tensorflow.js Neural Network

天涯浪子 提交于 2020-12-12 15:33:05
问题 When I have been attempting to implement this function tf.train.stg(learningRate).minimize(loss) into my code in order to conduct back-propagation. I have been getting multiple errors such The f passed in variableGrads(f) must be a function . How would I implement the function above into the code bellow successfully? and Why does this error even occur? Neural Network: var X = tf.tensor([[1,2,3], [4,5,6], [7,8,9], [10,11,12]]) var Y = tf.tensor([[0,0,0],[0,0,0], [1,1,1]]) var m = X.shape[0]

What is the best way to build a model of automated system with neural network in Simulink (Matlab)?

倾然丶 夕夏残阳落幕 提交于 2020-12-12 12:18:10
问题 I'm tring to build a model contating neural network in Simulink. My idea is to compose a model which includes a controlled object (electrical drive), PID controller and NN block for fine-tuning of the PID controller. NN training is provided for to be the reinforcement learning. NN calculates the koefficients of the PID controller, then it receives the feedback from the output of the object and calcucales the koefficients for the next cycle to minimize the static error. I've build the model