Skip to content

TypeError: 'TestTree' object is not callable #46

@krisbock

Description

@krisbock

Running the sample notebook "Testing Models -- Sentence Pair Classification".
Following code:

# Launch AdaTest!

tests.adapt(
    model,
    generator=gen_model,
    auto_save=True, # Set to "True" to automatically save tests as they are made.
)

# Optionally:
#adatest.serve(tests(model, generator=gen_model, auto_save=True), host='127.0.0.1', port=8080)

Doesn't generate interactive Widget through VSCode or AzureML Notebook experience. Probably not unsurprising. However, when uncommenting the .serve function to generate standalone client, get the error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[22], line 10
      3 tests.adapt(
      4     model,
      5     generator=gen_model,
      6     auto_save=True, # Set to "True" to automatically save tests as they are made.
      7 )
      9 # Optionally:
---> 10 adatest.serve(tests(model, generator=gen_model, auto_save=True), host='127.0.0.1', port=8080)

TypeError: 'TestTree' object is not callable

Running in Jupyter, the widget loads, but then just spins when clicking 'Suggest tests'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions