in Education by
I want to use MLPs to solve regression problem. I have inputs with variable length to fix this I want to use Zero-padding with masking layer. I read the inputs from csv file using pandas library. Here is how my data look like. I know only how to fill NaN values with 0 using this command x_train.fillna(0.0).values Like the first row : [4, 0, 0, 512, 1.0, 0.0, 1.0, 0.0, 128.0 , NaN] After padding : [4, 0, 0, 512, 1.0, 0.0, 1.0, 0.0, 128.0 , 0.0] The mask should be like this : [1, 1, 1, 1, 1, 1, 1, 1, 1, 0] But I do not know how to add the mask layer and feed them into my MLPs. If i have fixed input length. My program will look like this ... n_input = 10 #number og inputs train_X = pd.read_csv('x_train.csv') train_Y = pd.read_csv('y_train.csv') X = tf.placeholder("float", [None, n_input]) Y = tf.placeholder("float", [None, n_output]) ... y_pred = multilayer_perceptron(X) ... with tf.Session() as sess: sess.run(init) _, c = sess.run([train, loss], feed_dict={X: train_X, Y: train_Y}) ... I do not know how to combine between Zero padding and masking layer? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You cannot ignore a single Features in an MLP. Mathematically we are talking about a matrix multiplication. The only dimensions you can "ignore" are time dimensions in recurrent layers since the number of weights does not scale with the dimension of time and so a single layer can take different sizes in the time dimension. If you are only using Dense layers you cannot skip anything because your only dimension (besides the batch dimensions) scales directly with the number of weights.

Related questions

0 votes
    I'm using TensorFlow Alpha 2.0. I have TFRecords files I'm reading from, each one holding a short ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I have been working on the Snackbar and achieved in my project successfully. However, there is this little ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 6, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me what is Data Masking Informatica Cloud? Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    Data masking is also known as _________ (a) Data obfuscation (b) Data copying (c) Data breaching (d) Data ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 4, 2021 in Education by JackTerrance
0 votes
    Data leakage prevention is based on factors like access controls, persistent, encryption, alerting, tokenization, blocking dynamic ... and answers pdf, mcq on Cyber Security pdf,...
asked Nov 2, 2021 in Education by JackTerrance
0 votes
    Suppose I have a Tensorflow tensor. How do I get the dimensions (shape) of the tensor as integer values? I ... 'Dimension' instead. Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I am new to TensorFlow. While I am reading the existing documentation, I found the term tensor really confusing. ... types of tensors? Select the correct answer from above options...
asked Jan 29, 2022 in Education by JackTerrance
0 votes
    In tf.nn.max_pool of tensorflow what is the difference between 'SAME' and 'VALID'? I read in here that ... pool means in tensorflow? Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    The ___________ class adds a rounded border around an element with a gray background color and some padding. ... .alert .jumbotron Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    I'm a little new to the web development scene and I was having a very persistent problem ... ? C̶h̶r̶o̶m̶e̶ ̶m̶u̶s̶t̶ ̶b̶e̶ ̶i̶n̶c̶r̶e̶d̶i̶b̶l̶y̶ ̶b̶u̶g̶g̶y̶ ̶o̶n̶ ̶U̶b̶u̶n̶t̶u̶!̶...
asked Jan 13, 2022 in Education by JackTerrance
0 votes
    What are difference between Margin v/s Padding?...
asked Dec 21, 2020 in Technology by JackTerrance
0 votes
    Using up-to-date Keras and Tensorflow on Ubuntu 16.04 and 14.04. For the following code: img2D = ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 23, 2022 in Education by JackTerrance
0 votes
    I am trying to decompose a 3D matrix using python library scikit-tensor. I managed to decompose my Tensor ... the decomposed matrices? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    What is Tensor Data Structure?...
asked Nov 3, 2020 in Technology by JackTerrance
0 votes
    Can we create Dynamic Classes in Objective C? If Yes, Explain how to create with a valid use case?...
asked Nov 10, 2020 in Technology by JackTerrance
...