src/random_forest.py
def predict(rfModel, data):
    '''
    This functoin accepts as input the model previously trained and the data on which
    prediction has to be made and returns the predictions.

    Arg1 : Model obtained from training.
    Arg2 : Data on which predictions has to be made.
    '''
    predictions = rfModel.transform(data)
    return predictions

    This functoin accepts as input the model previously trained and the data on which
    prediction has to be made and returns the predictions.

    Arg1 : Model obtained from training.
    Arg2 : Data on which predictions has to be made.
    
This functoin accepts as input the model previously trained and the data on which
prediction has to be made and returns the predictions.

Arg1 : Model obtained from training.
Arg2 : Data on which predictions has to be made.
This functoin accepts as input the model previously trained and the data on which prediction has to be made and returns the predictions . Arg1 : Model obtained from training . Arg2 : Data on which predictions has to be made .
def predict(rfModel, data):
    predictions = rfModel.transform(data)
    return predictions
def predict ( rfModel , data ) : predictions = rfModel . transform ( data ) return predictions
This functoin accepts as input the model previously trained and the data on which
prediction has to be made and returns the predictions.
This functoin accepts as input the model previously trained and the data on which prediction has to be made and returns the predictions .
'''
    This functoin accepts as input the model previously trained and the data on which
    prediction has to be made and returns the predictions.

    Arg1 : Model obtained from training.
    Arg2 : Data on which predictions has to be made.
    '''
rfModel
data