Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Save average document length after fitting #1

@dunefox

Description

@dunefox

I think avgdl should be saved as an attribute after fitting so it's not estimated again if transform is called for one document instead of the 'training' corpus.

So

fit(X).transform(X)

makes sense because all documents in X use the same avgdl but

fit(X).transform(X)
transform(other_document)

then estimates avgdl for this document alone again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions