Tag: clip

  • Equivalent of Numpy’s Clip function in R

    Equivalent of Numpy’s Clip function in R

    Numpy’s clip function is a handy function that brings all data in a series into a range. For example, in machine learning, it is common to have activation functions that take a continuous range of values and bring them to a range like 0 to 1, or -1 to 1. In my case, I was…