Find suitable function to score example data based on given rule
I'm not an expert in the AI topic but for my underlying problem I need to find a function which rates data samples based on a specific value x. This means that based on the output of the function it should be determined, whether the data example is a good one or not. The score(=y of function) should be between 0 and 1.
The rules I need to follow for the rating are the following:
- x should never be below 10.
- best values for x are between 30 and 60.
- x should not be higher than 100.
I thought about several functions like sigmoid or log but all of them don't represent all of the rules according to my knowledge. Is there anybody out there who can give me some hints to solve my problem please?
Thanks in advance
Topic objective-function cost-function score
Category Data Science