• JS random scrambling array


    How to realize the random disorder of JS object array? Solution: arr.sort(()=>Math.random() – 0.5) The comparison function has two parameters, and its return value determines the relative position of the two values. When it is positive, the first value changes to the second value, and then it is negative or 0 without changing the position.

  • Compose and blend (II)


    stayLast articleWe talked aboutcomposeSome methods, such assource-in,XORwait. But these are related to cutting, which we will introduce belowblend。 What is blend I understandblendyescomposeOne step in the process,Last articleI’ve already talked about itcomposeSome methods, butblendIs to mix the colors of two pictures together. The most typical example is the three primary colors. We can imagine the […]

  • Html5-css3 summary learning (III)


    1、 Know3Dtransformation 3DCharacteristics of Near big far small Object and face occlusion invisible 3D coordinate system X axis: horizontal right–Note: the right side of the x-axis is positive and the left side is negative Y axis: vertical down–Note: positive values are below the Y-axis and negative values are above it Z axis: vertical screen–Note: the […]

  • How to choose the evaluation index of classification model


    Author muskan097Compile VKSource: analytics vidhya brief introduction You have successfully built the classification model. What do you do now? How do you evaluate the performance of the model, that is, the performance of the model in terms of prediction results. To answer these questions, let’s look at the metrics used in evaluating classification models through […]

  • Deep understanding of margin in CSS box model


    Margin Setting the outer margin will create extra “white space” outside the element. The “white space” usually refers to the area where other elements cannot be placed, and the background of the parent element can be seen in this area. The outer margin will not affect the size of the box, but will affect the […]

  • Common indicators of semantic segmentation


    There are three most commonly used indicators in semantic segmentation. To facilitate interpretation, the confusion matrix needs to be introduced first, as follows: Confusion matrix True value Positive Negative   predicted value   Positive True positive (TP) False positive (FP) Negative False negative (FN) True negative (TN)   First of all, it is assumed that […]