Skip to content

features vs feature #1

Description

@sylnsr

# Fortunately, PySpark has functions for handling this built into the `pyspark.ml.features` submodule. You can create what are called `'one-hot vectors'` to represent the carrier and the destination of each flight. A one-hot vector is a way of representing a categorical feature where every observation has a vector in which all elements are zero except for at most one element, which has a value of one (1).

I think this is a typo. It should be pyspark.ml.feature (singular) instead of pyspark.ml.features (plural), as you can see in the source code of the relevant package

I too have made this error, which is how I found this code () when I searched for my error, which was No module named 'pyspark.ml.features' ... but fixed my error by using import pyspark.ml.feature instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions