HASKI-RAK / HASKI-Backend

This is the Backend System for our HASKI project.
GNU Lesser General Public License v2.1
4 stars 1 forks source link

Implementierung ga for leaning path #79

Closed yusme closed 7 months ago

sonarcloud[bot] commented 9 months ago

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

DimitriB01 commented 8 months ago

Könntest du noch versuchen diesen Code abschnitt zu testen:

def seach_learning_elements(self):
        """This function searches for the best learning elements"""
Uncovered code
        best_sample = []
        for idx in self.population:
            if not self.valide_elementen(self.learning_elements[np.insert(idx, 0, 0)]):
                best_sample = idx
                break
        if len(best_sample) == 0:
            best_sample = self.initial_individuals[1:]
        return best_sample

Weil in dem ga.py werden alle Methoden aufgerufen bis auf die hier. Und da ist noch ein Schreibfehler, es sollte vermutlich search_learning_elements(self) heißen oder?

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
94.6% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud