Ensure Python 3.10 environment is active:
source /root/.venv310/bin/activate python -VVNavigate to project root:
cd /root/SimPORun the unit test:
python unit_test/unit_test_1.pyVerify output file was created:
ls -lh /root/loss.npzInspect the saved loss values (optional verification):
python -c "import numpy as np; data = np.load('/root/loss.npz'); print(data['losses'])"Check for any error messages:
- If test fails, review error traceback
- Verify tensor shapes match test expectations
- Confirm loss computation logic against paper formula
Run Unit Test in Python 3.10 Environment
Use to execute the unit test within the Python 3.10 virtual environment after implementing the loss function. This validates the implementation against fixed input tensors.
Run Unit Test in Python 3.10 Environment by cxcscmu · a3fba84
npx get-skill add cxcscmu/run-unit-test-in-python-3-10-environment File contents
---name: run-unit-test-in-python-3-10-environmentdescription: Use to execute the unit test within the Python 3.10 virtual environment after implementing the loss function. This validates the implementation against fixed input tensors.metadata: source: https://skillmd.com/skills/cxcscmu/run-unit-test-in-python-3-10-environment---1. **Ensure Python 3.10 environment is active**: ```bash source /root/.venv310/bin/activate python -VV ```2. **Navigate to project root**: ```bash cd /root/SimPO ```3. **Run the unit test**: ```bash python unit_test/unit_test_1.py ```4. **Verify output file was created**: ```bash ls -lh /root/loss.npz ```5. **Inspect the saved loss values** (optional verification): ```bash python -c "import numpy as np; data = np.load('/root/loss.npz'); print(data['losses'])" ```6. **Check for any error messages**: - If test fails, review error traceback - Verify tensor shapes match test expectations - Confirm loss computation logic against paper formula
cxcscmu/SkillLearnBench commit a3fba84141
Frequently asked questions
Run npx get-skill add cxcscmu/run-unit-test-in-python-3-10-environment in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Use to execute the unit test within the Python 3.10 virtual environment after implementing the loss function. This validates the implementation against fixed input tensors. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
cxcscmu (@cxcscmu) published this skill. Their other Agent Skills are listed on their SkillMD profile.