Cannot retrieve contributors at this time
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
TICC/example.pyGo to file
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|from TICC_solver import TICC|
|import numpy as np|
|fname = "example_data.txt"|
|ticc = TICC(window_size=1, number_of_clusters=8, lambda_parameter=11e-2, beta=600, maxIters=100, threshold=2e-5,|
|write_out_file=False, prefix_string="output_folder/", num_proc=1)|
|(cluster_assignment, cluster_MRFs) = ticc.fit(input_file=fname)|
|np.savetxt('Results.txt', cluster_assignment, fmt='%d', delimiter=',')|