refactor(internbootcamp): standardize naming conventions and improve code structure

- Rename puzzle configuration files for consistency (e.g., InChI2logP_test.json)
- Standardize class names to PascalCase (e.g., InChI2MRBootCamp -> InChI2MRbootCamp)
- Improve code structure in various bootcamp modules for better readability and maintainability
- Update import statements and file references to reflect new naming conventions
- Enhance setup.py to include rdkit dependency
This commit is contained in:
chenyongkang 2025-06-16 20:49:17 +08:00
parent fdf5d19170
commit 324d068f8d
14 changed files with 120 additions and 59 deletions

View file

@ -6,16 +6,19 @@ from rdkit.Chem import Crippen
from .InChI2logPBootCamp import InChI2logPbootcamp
class SMILES2logPBootCamp(InChI2logPbootcamp):
class SMILES2logPbootcamp(InChI2logPbootcamp):
def __init__(self,min_len=5, max_len=25,
seed=None):
# super.__init__()
self.SMILESGenerator = SMILESGenerator(min_len=min_len, max_len=max_len, seed=seed)
self.min_len = min_len
self.max_len = max_len
# self.SMILESGenerator = SMILESGenerator(min_len=min_len, max_len=max_len, seed=seed)
def case_generator(self) -> str:
"""
生成一组数字和目标值
"""
self.SMILESGenerator = SMILESGenerator(min_len=self.min_len, max_len=self.max_len, seed=None)
return self.SMILESGenerator.generate_n_valid_smiles(1)[0]
def prompt_func(self, SMILES) -> str: