Skip to content

Comments

The fitP update#8

Open
balaram26 wants to merge 6 commits intomdfeatureselection:mainfrom
balaram26:main
Open

The fitP update#8
balaram26 wants to merge 6 commits intomdfeatureselection:mainfrom
balaram26:main

Conversation

@balaram26
Copy link
Contributor

  1. I have created the new fitp cpp that has both fitp functions and also multitest functions (this part alone not used for now in python yet).
  2. Added some test scripts i used in example section, along with the data used by them.

balaram26 and others added 5 commits August 9, 2023 16:23
1.fit_p_value cpp modified for contrast data check.
2.division parameter included in compute tuples.
3.Compute max ig discrete function fixed.(had issue with variable initiation).
1. updated the Fitp function
2.Included individual examples scripts for testing MDFS,ComputeIG and fitP value functions.
Removed some unnecessary lines

def fit_p_value(chisq, chisq_contrast, *,
exponential_fit,
dimensions=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does the fit depend on dimensions now? Previously it only needed to know whether it is going to be exponential or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes its not needed as its same as the bool variable. SO i removed and made the commit based on ur comments now.



def compute_tuples_discrete(data, decision=None, *, dimensions=2, pc_xi=0.25,
def compute_tuples_discrete(data, decision=None, *, divisions = 1, dimensions=2, pc_xi=0.25,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we don't want to add this here. They must be set from the data.

Copy link
Contributor Author

@balaram26 balaram26 Nov 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the default code to caluclate the divisions will not work in all cases. This is the code that was used before.
divisions = len(set(data)) - 1
For now i have removed the divisions parameter from the function, but then this above block needs to be fixed or modified.


divisions = len(set(data)) - 1
# if divisions!= None and divisions <= 0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code comments are bad. Please remove.

return x

def compute_max_ig_discrete(data, decision, contrast_data=None, dimensions=1, pc_xi=0.25, return_tuples=False,
def compute_max_ig_discrete(data, decision, contrast_data=None, dimensions=1, divisions=1, pc_xi=0.25, return_tuples=False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto about divisions - for discrete we must discover them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as mentioned above, lets anyway discuss this this week.

@yoctozepto
Copy link
Member

Let's talk about it next week.

1. i have removed the dimensions param from fit_p_value
2.I have removed the divisions param from discrete functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants