Closed matejasoretic closed 7 months ago
Hi, Thank you very much for making this great tool. I am confused as to what could be causing this error:
Saving Pretrain AnnData 100%|██████████| 135/135 [00:25<00:00, 5.22it/s] *****PRETRAIN SCORES***** ------------------------- ------Log Reg Scores----- Dummy accuracy (species 1 train ==> 1 train) = 0.714 Dummy accuracy (species 1 train ==> 1 test) = 0.702 Logistic regression accuracy (species 1 train ==> 1 train) = 0.985 Logistic regression accuracy (species 1 train ==> 1 test) = 0.983 Logistic regression accuracy (species 1 train ==> 1 test) (balanced) = 0.948 Dummy accuracy (species 1 train ==> 2) = 0.000 Logistic regression accuracy (species 1 train ==> 2) = 0.059 Maximum theoretical transfer accuracy (species 1 ==> 2) = 0.400 Logistic regression accuracy (species 1 train ==> 2) (balanced) = 0.104 Maximum theoretical transfer accuracy (species 1 ==> 2) (balanced) = 0.667 ----------------------------- ***STARTING METRIC LEARNING*** Traceback (most recent call last): File "/path/to/train-saturn.py", line 1064, in <module> trainer(args) File "/path/to/train-saturn.py", line 780, in trainer mining_func = miners.TripletMarginMiner(margin = 0.2, File "/path/to/miners/triplet_margin_miner.py", line 20, in __init__ super().__init__(**kwargs) File "/path/to/miners/base_miner.py", line 9, in __init__ super().__init__(**kwargs) File "/path/to/utils/module_with_records_and_reducer.py", line 41, in __init__ super().__init__(**kwargs) TypeError: __init__() got an unexpected keyword argument 'miner_type'
My code is: python3 /path/to/train-saturn.py --in_data /path/to/all_species_run.csv \ --in_label_col=cell_type --ref_label_col=cell_type \ --num_macrogenes=2000 --hv_genes=8000 \ --centroids_init_path=/path/to/saturn_results//all_species_centroids.pkl \ --score_adata --ct_map_path=/path/to/cell_type_map.csv \ --work_dir=/path/to/work_dir
Hi, Thank you very much for making this great tool. I am confused as to what could be causing this error:
My code is: python3 /path/to/train-saturn.py --in_data /path/to/all_species_run.csv \ --in_label_col=cell_type --ref_label_col=cell_type \ --num_macrogenes=2000 --hv_genes=8000 \ --centroids_init_path=/path/to/saturn_results//all_species_centroids.pkl \ --score_adata --ct_map_path=/path/to/cell_type_map.csv \ --work_dir=/path/to/work_dir