Skip to content

Latest commit

 

History

History
85 lines (44 loc) · 2.53 KB

08.DataGeneration.md

File metadata and controls

85 lines (44 loc) · 2.53 KB

Model and sample data generation

  1. Open the SkiResort.DataGeneration.sln solution. (src\SkiResort.DataGeneration directory)

  2. Set gen-skiretals as StartUp project.

    gen-skirentals generates ski rentals records for the last few years into an SQL table.

  3. Click on App.config file. The ConnectionString uses the SQL Server hosted on Azure.

  4. Click on F5.

  5. Wait to finish.

  6. Set gen-skilocations as the StartUp project.

    gen-skilocations simulates skiers movements around the mountain by continuously moving them from the bottom of chairlifts to the top and back. The location events are pushed to an event hub that is then consumed by Stream Analytics.

  7. Click on App.config file to check that the EventHub connectionstring is configured.

  8. Click on Ctrl + F5 to run the application without debugging.

    The application will continuously send the events without stopping.

  9. Stream Analytics consumes the events to process and store them in three different outputs.

  10. Set gen-recomodel as StartUp project.

    geo-recomodel: giving 2 inputs (restaurant list, user restaurant attendance) creates a recommendations model in the pre-built Cognitive Services recommendations API. It uses the recommendations data service created in the first steps.

  11. Click on App.config file to check that the connectionstring and recommendations key are configured.

  12. Click on Ctrl + F5 to run the application without debugging.

  13. Copy the modelId. You will need it later.

  14. After creating the model the application is able to read the RestaurantId and search for the service recommendations.

  15. Click 1.

  16. Click 2.

  17. Set gen- restaurantsearch as the StartUp project.

    geo-restaurantsearch runs all restaurants by the recommendations API, retrieves a list of recommended restaurants for each one, and pushes the list of recommended/related restaurants to the Azure Search index.

  18. Click on App.config file.

  19. Update the RecoModelId with the value copied in the previous step.

  20. Click on F5.

  21. Open SQL Server Management Studio.

  22. Connect your database using SQL Server Authentication.

    • Username: skiresort
    • Password: P2ssw0rd@1
  23. Run the store procedure TrainRentalModel.

Next