Code Monkey home page Code Monkey logo

Comments (6)

montanalow avatar montanalow commented on August 30, 2024

Do you mind providing the full stacktrace? It looks like there is a typo, since the correct type of pipeline is probably lore.pipelines.holdout.Base

from lore.

code-wangshuyi avatar code-wangshuyi commented on August 30, 2024

Many thanks for your response!
I used the Cute Little Example
The following is the full stacktrace:

root@iZwz922qhju4g3na76zdj6Z:~/mairui# lore test
mairui in test on root@iZwz922qhju4g3na76zdj6Z with Python 3.6.4 & Lore 0.6.14
RUNNING Test Suite
/root/.pyenv/versions/3.6.4/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
Using TensorFlow backend.
2018-08-04 10:47:56.076266: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
E

ERROR: unit.test_subscribers (unittest.loader._FailedTest)

ImportError: Failed to import test module: unit.test_subscribers
Traceback (most recent call last):
File "/root/.pyenv/versions/3.6.4/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/root/.pyenv/versions/3.6.4/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
import(name)
File "/root/mairui/tests/unit/test_subscribers.py", line 3, in
from mairui.models.subscribers import DeepName, BoostedName
File "/root/mairui/mairui/models/subscribers.py", line 6, in
from mairui.pipelines.subscribers import Holdout
File "/root/mairui/mairui/pipelines/subscribers.py", line 7, in
class Holdout(lore.pipelines.holdout.Base):
AttributeError: module 'lore.pipelines' has no attribute 'holdout'


Ran 1 test in 0.002s

FAILED (errors=1)

from lore.

montanalow avatar montanalow commented on August 30, 2024

Did you recently upgrade to lore 0.6.X? You'll now need to import specific pipeline modules. In this case:

import lore.pipelines.holdout

at the top of "/root/mairui/mairui/pipelines/subscribers.py"

from lore.

montanalow avatar montanalow commented on August 30, 2024

I have updated the documentation to reflect this: 07aad34

from lore.

code-wangshuyi avatar code-wangshuyi commented on August 30, 2024

Yes
Requirement already satisfied: lore in /root/.pyenv/versions/3.6.4/envs/mairui/lib/python3.6/site-packages (0.6.14)

from lore.

code-wangshuyi avatar code-wangshuyi commented on August 30, 2024

Thank you

from lore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.