Skip to content

Initialize Pi, Mu, and Sigma parameters #1

@wiamadaya

Description

@wiamadaya

Hello, I'm still new to GMM and would like to implement in my program, but I'm confused what the below method is doing

public void InitializeParameters(int index){
	 	
		Pi_k[0] = 0.33;                              
		Pi_k[1] = 0.33;                              
		Pi_k[2] = 0.34;                              
		
		Mu_k[0] = 2;                               
		Mu_k[1] = 5;                               
		Mu_k[2] = 9;                                
		
		Sigma_k[0] = 5;                             
		Sigma_k[2] = 3;
		
		if(index == 0){
		  Sigma_k[1] =  3;  
		  rough = Sigma_k[1]; 
		}
		else
		  Sigma_k[1] = rough;	
		
	}

My understanding is we are creating GMM with 3 components, what about If only 2 components, how to initialize these Pi, Mu, and Sigma parameters? (I understand what they are but cant intuitively understand how to initialize them, is this using k-means or random)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions