Ask for machine learning Python example with 2 data files

<%= @topic_view.topic.title %>
<%= @topic_view.topic.average_rating %> <%= @topic_view.topic.posts.count { |p| !!p.custom_fields['rating'] } %>

Please advise such simple example in python of machine learning that supports both inputs of training file and test file about code will give output, not just not ending theoretical material with no relevant code to test… 