Skip to content

Conversation

@kapkic
Copy link
Collaborator

@kapkic kapkic commented Sep 16, 2024

No description provided.

echo Conda environment is activated
cd ../..
echo Building package...
pip install gcastle
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need comments on why we do these.
we know the answer but it should be informative nevertheless to others.

pip install torch
pip install build
python -m build
pip install dist\causalbench_asu-0.1rc3-py3-none-any.whl
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause issues as we update our versioning, find a way to install the package without explicitly stating the name (...0.1rc3...)

pip install gcastle
pip install torch
pip install build
python -m build
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC this should take some arguments to provide the wheel output name.

@kapkic
Copy link
Collaborator Author

kapkic commented Sep 16, 2024

We will have many more tests in the future. Our test suite should have

echo "X tests have run, of which Y have completed, Z have failed. The failed tests are: {a,b,c}."
if Z>0:
    throw error

Always catch exceptions and show them with their tracelog.

pip install torch
pip install build
python -m build
pip install dist/causalbench_asu-0.1rc3-py3-none-any.whl
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follows the issues on the bat file as well.

@@ -0,0 +1,5 @@
from causalbench.modules.task import Task
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs comments on what it specifically tests. A successful case? A failed case? A maliciously set case?

@kapkic
Copy link
Collaborator Author

kapkic commented Sep 16, 2024

Needs a manually created context case.

   context2: Context = Context.create(name='Temporal Context: VAR-LiNGAM, pcmciplus',
                                        description='Test temporal context',
                                        task='discovery.temporal',
                                        datasets=[(dataset2, {'data': 'file1', 'ground_truth': 'file2'})],
                                        models=[model3, model4],
                                        metrics=[metric3, metric4])

response = init_auth()

assert is_jwt(response), "Response is not in JWT format. Access token could not received"
print("Response is in JWT format and it is an access token.") No newline at end of file
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

@kapkic kapkic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides a few comments LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants