Computer/NN_Trainer/cnnModel_Keras.py
def convertSteeringAngle_to_OneHotEncoded(steeringAngleList):
    """
    converts the steeringAngle numbers of range -10 to +10
    into one-hot-encoded arrays for classification
    :param steeringAngleList: list of steeringAngles
    """
    sa_list = []
    for angle in steeringAngleList:
        index = angle + 10; #add 10 so convert negative angles into positive
        oneHotArray = np.zeros(21) #20 possible outputs, but 21 b/c max degree is 10, so 10 + 10 is 21
        oneHotArray[index] = 1
        sa_list.append(oneHotArray.tolist())
    return sa_list

    converts the steeringAngle numbers of range -10 to +10
    into one-hot-encoded arrays for classification
    :param steeringAngleList: list of steeringAngles
    
converts the steeringAngle numbers of range -10 to +10
into one-hot-encoded arrays for classification
converts the steeringAngle numbers of range - 10 to + 10 into one - hot - encoded arrays for classification
def convertSteeringAngle_to_OneHotEncoded(steeringAngleList):
    sa_list = []
    for angle in steeringAngleList:
        index = angle + 10; 
        oneHotArray = np.zeros(21) 
        oneHotArray[index] = 1
        sa_list.append(oneHotArray.tolist())
    return sa_list
def convertSteeringAngle_to_OneHotEncoded ( steeringAngleList ) : sa_list = [ ] for angle in steeringAngleList : index = angle + 10 ; oneHotArray = np . zeros ( 21 ) oneHotArray [ index ] = 1 sa_list . append ( oneHotArray . tolist ( ) ) return sa_list
converts the steeringAngle numbers of range -10 to +10
into one-hot-encoded arrays for classification
converts the steeringAngle numbers of range - 10 to + 10 into one - hot - encoded arrays for classification
"""
    converts the steeringAngle numbers of range -10 to +10
    into one-hot-encoded arrays for classification
    :param steeringAngleList: list of steeringAngles
    """ #add 10 so convert negative angles into positive #20 possible outputs, but 21 b/c max degree is 10, so 10 + 10 is 21
steeringAngleList
list of steeringAngles
list of steeringAngles