def stripEscapes(self, string):
        result = ''
        show = 1
        i = 0
        L = len(string)
        while i < L:
            if show == 0 and string[i] in _sets:
                show = 1
            elif show:
                n = string.find('\x1B', i)
                if n == -1:
                    return result + string[i:]
                else:
                    result = result + string[i:n]
                    i = n
                    show = 0
            i = i + 1
        return result
Learn weight coefficients from training data.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/ui/ansi.py/AnsiParser.stripEscapes--crossover with--dataset/ETHPy150Open rasbt/mlxtend/mlxtend/tf_regressor/tf_linear_regression.py/TfLinearRegression.fit