Closed LLLeoLi closed 3 months ago
LGTM, thanks for the bug fix!
File /data/cj_group/shuyu/raptor/raptor/cluster_utils.py:179, in RAPTOR_Clustering.perform_clustering(nodes, embedding_model_name, max_length_in_cluster, tokenizer, reduction_dimension, threshold, verbose) 174 if verbose: 175 logging.info( 176 f"reclustering cluster with {len(cluster_nodes)} nodes" 177 ) 178 node_clusters.extend( --> 179 RAPTOR_Clustering.perform_clustering( 180 cluster_nodes, embedding_model_name, max_length_in_cluster 181 ) 182 ) ... 1796 or isinstance(self.n_epochs, tuple) 1797 or isinstance(self.n_epochs, np.ndarray) 1798 ):
ValueError: n_components must be greater than 0
it seems that dim<=0 and caused this error
fix the bug about issue#15