Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Data Analysis

aymene chaabaoui
aymene chaabaoui
901 Points

how to apply machine learning to a database with scikit-learn , idea ??

i have one database of countries and cities like this : city :

 private Long id;
 private Country country;
 private String cityName;
 private double lat;
 private double lng;

and for the country we have this :

private Long id;
private String code;
private String name;
private byte[] flag;
private Collection<City> cities;

so this is the database's structure, and all this is managed by restful web service with this methods :

    public List<City> allcities();
    public List<City> citiesByNameStartingWith( String city);
    public List<City> citiesByNameContaining(String city);
    public List<City> citiesByNameEndingWith(String city);
        // and same thing for countries

so what I'm searching now is to use this web service with scikit-learn and machine learning for doing something nice (i don't know what exactly), I want the idea, please help me