분류 전체보기 330

reduce_sum, cast, argmax, image_dataset_from_directory, one_hot, reduce_mean, assign_sub, boolean_mask, random.normal, zeros

reduce_sum Computes the sum of elements across dimensions of a tensor. - keepdims=False The rank of the tensor is reduced by 1 for each of the entries in axis A = tf.constant([[[1, 2, 3]], [[4, 5, 6]]]) tf.reduce_sum(A)=21 tf.reduce_sum(A, 0)=[[5 7 9]] tf.reduce_sum(A, 1)=[[1 2 3] [4 5 6]] tf.reduce_sum(A, 2)=[[ 6] [15]] - keepdims=True The reduced dimensions are retained with length 1. tf.reduc..

Entropy, Cross-Entropy, Binary cross entropy, SparseCategoricalCrossentropy

EntropyThe level of uncertainty. It must range between 0 and 1.0            entropy            1certain                          uncertainThe greater the value of entropy, the greater the uncertainty for probability,the smaller the value the less the uncertainty. reference : towardsdatascience.com/cross-entropy-loss-function-f38c4ec8643e Cross-EntropyHow far it is from the actual expected value,..

Machine Learning 2023.12.01