pyod icon indicating copy to clipboard operation
pyod copied to clipboard

Why models.__init__.py is commented? How to import models from relative path?

Open cfrancois7 opened this issue 3 years ago • 1 comments

Hello,

I noticed pyod.models.init.py is commented. See: models.init.py

How do you propose to import the models from relative path?

I tried to import from relative path the models to test them but it is not possible.

import pyod
pyod.models. <<= no models

from pyod.models.copod import COPOD <<== works

My version is the last one: 0.8.6. Same symptoms with 0.8.5.

cfrancois7 avatar Jan 13 '21 10:01 cfrancois7

This was a legacy issue and we decided to go for absolute import. Maybe a nice relative import should be preferred. Will mark it as an enhancement to implement.

yzhao062 avatar Jan 14 '21 22:01 yzhao062