# Hàm PReLU

# @author: Quang Thin

dataset = [1,4,-6,9,-3]
alpha = 0.1
def PReLU(data,alpha):
    result = []
    for i in data:
        if i<0:
            result.append(round(alpha*int(i),3))
        else:
            result.append(i)
    return result

result = PReLU(dataset,alpha)
print(result)

baa3efc90f4cb7d3f73856168c356d20e303703e
<mask token>

<mask token>


def PReLU(data, alpha):
    result = []
    for i in data:
        if i < 0:
            result.append(round(alpha * int(i), 3))
        else:
            result.append(i)
    return result


<mask token>

<mask token>


def PReLU(data, alpha):
    result = []
    for i in data:
        if i < 0:
            result.append(round(alpha * int(i), 3))
        else:
            result.append(i)
    return result


<mask token>
print(result)

dataset = [1, 4, -6, 9, -3]
alpha = 0.1


def PReLU(data, alpha):
    result = []
    for i in data:
        if i < 0:
            result.append(round(alpha * int(i), 3))
        else:
            result.append(i)
    return result


result = PReLU(dataset, alpha)
print(result)

# Hàm PReLU

# @author: Quang Thin

dataset = [1,4,-6,9,-3]
alpha = 0.1
def PReLU(data,alpha):
    result = []
    for i in data:
        if i<0:
            result.append(round(alpha*int(i),3))
        else:
            result.append(i)
    return result

result = PReLU(dataset,alpha)
print(result)
