python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Wanting to subtract 1 from several specific columns in a dataframe
I am super new to R, and the many facets of coding language.
I have a set of data with many variables. I have a few columns (that are beside each other), where I need to subtract 1 from all values in ...
Cassidy Tomlinson
Votes: 0
Answers: 2
Conditional substract in tensorflow
I'm trying to calculate a custom MSE in tf.keras, such as:
def custom_mse(y_true, y_pred):
return tf.reduce_mean(tf.square(y_true - y_pred), axis=-1)
But I want to calculate the difference y_tru...
rainbow
Votes: 0
Answers: 2
Wrong outputs from torch.sub?
I’m currently using torch.sub alongside torch.div to obtain the MAPE between my predicted and true labels for my neural network although I’m not getting the answers I’m expecting. According to the exa...
Jonathan Couture
Votes: 0
Answers: 1
Perform subtraction between two rows of the same group based on a rule via R
I have a data frame where I have land use data for the year 2005 and 2018. I would like to generate a new data.frame that shows me the difference between 2005 and 2018 for each column, so that if ther...

wesleysc352
Votes: 0
Answers: 2