Giter Club home page Giter Club logo

cognitive-services-personalizer-samples's Introduction

page_type languages products description urlFragment
sample
java
csharp
javascript
python
php
azure
Repository for samples, tutorial, snippets and utilities that will help you understand and make great use of the Cognitive Services Personalizer.
cognitive-services-personalizer-samples

Azure Cognitive Services - Personalizer Samples

Repository for samples, tutorial, snippets and utilities that will help you understand and make great use of the Cognitive Services Personalizer.

About Personalizer

Personalizer Documentation

SDKs and Client Libraries for Personalizer

Quickstarts Using Personalizer with SDKs

  • C# & .NET
  • Python
  • Java
  • PHP
  • NodeJS

Samples

Demo Websites & Apps

These are samples designed to create appealing, interactive apps that illustrate how Personalizer works.

Prerequisites

Basic understanding of Personalizer

Installation

See the README.md in each sample for instructions.

Getting the Samples

  1. git clone https://github.com/Azure-Samples/cognitive-services-personalizer-samples
  2. cd cognitive-services-personalizer-samples

Demo

Interactive Demo Run the demo on your box

Resources

  • Personalizer Landing Page
  • Documentation
  • UserVoice
  • Stack Overflow

cognitive-services-personalizer-samples's People

Contributors

annedroid avatar arafattehsin avatar dependabot[bot] avatar diberry avatar dwaijam avatar edjez avatar ejadib avatar galcaraz avatar homezcx avatar jcodella avatar jcondina avatar jongio avatar kbrons avatar limotley avatar lucaasrojas avatar mandyshieh avatar mariavrabie avatar microsoftopensource avatar msftgits avatar nbellocam avatar orenmichaely avatar paradoxarg avatar sheetallahabar avatar tyclintw avatar v-hearya avatar v-jaswel avatar wiazur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cognitive-services-personalizer-samples's Issues

'See it in Action' Link doesn't work

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Go to the readme.md file
  1. go to section 'Demo Websites & Apps'
  2. click on the 'See it in action!' link
  3. you'll be redirected to 'https://personalizationdemo.azurewebsites.net/' which returns an error

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 11

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

The Chatbot Has Errors In Connecting to LUIS Getting a “ Gone” Result!

I am Getting this Error when connecting to LUIS
microsoft/botframework-sdk#5371

From: Sonia Ang
Sent: Sunday, October 20, 2019 1:23 PM
To: Dina Berry [email protected]; Chenxi Zhao [email protected]; Edward Jezierski [email protected]
Subject: RE: Amy clue on personalization example " Coffee bot "

Gone means it was not published – but it is .
IT means it also cant reach the Luis keys and app id etc.
IT was able t do the intro dialogue but has not reached luis part where it BOMBS.

See this stack opverflow but not sure if this is related
It is supposed to work by merely running in it visual studio for testing!!
I don’t need to deploy this
microsoft/botframework-sdk#5371

This is V4 bot FWK but it still has the bot file present. But it did s in the literature bot file is STILL supported

From: Dina Berry [email protected]
Sent: Sunday, October 20, 2019 1:17 PM
To: Sonia Ang [email protected]; Chenxi Zhao [email protected]; Edward Jezierski [email protected]
Subject: RE: Amy clue on personalization example " Coffee bot "

I’m unfamiliar with this sample in detail.

What version of the LUIS SDK are you using? Does the same query work from a cURL command?

@chenxi Zhao @edward Jezierski – thoughts?

From: Sonia Ang [email protected]
Sent: Sunday, October 20, 2019 9:31 AM
To: Dina Berry [email protected]
Subject: Amy clue on personalization example " Coffee bot "

Hello Dina

I am working on the Personalization Chatbot example and I am getting this error from Luis.
I followed all the instructions in the document

What is the cause of this – does Luis need the latest release to support RL? There is a preview there I see like V6 ?


This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

In demo/techfest, the endpoint of personalizer

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

when running the application of techfest

Any log messages given by the failure

401 Access Denied

OS and Version?

Windows 10

Mention any other details that might be useful

So the original endpoint url to personalizer api in this sample code is "https://westus2.api.cognitive.microsoft.com/personalization/v1.0/rank".
But the error occurred. It worked when the endpoint url be changed to "https://westus2.api.cognitive.microsoft.com/personalizer/v1.0/rank".


Thanks! We'll be in touch soon.

Can I relate or abstract the intent based on the underlying question. i.e. a question for a 1 word response would need the context of the question to be useful.

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Expected/desired behavior

But, I still have that burning question. Can I relate or abstract the intent based on the question. This is important to conversation with the client because again, there could be multiple questions that would have a response of 1 word answers... What is color car are you looking for: black. What color interior: black. How can I know the intent for each of those without basing it on the underlying question? In practice, how would this be accomplished?

I am asking this because the more complex the question i.e. form style questioning the more danger there is to one word answers that have a meaning in context to the question.

Can you tell me this is possible? I want to gain the intent from the context of the question.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

User input for giving reward or quitting requires quotation marks to work

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Run sample.py, input information until Personalizer makes a recommendation. Enter either y or n and press Enter. Also works with q for quit.

Any log messages given by the failure

raceback (most recent call last):
File "sample.py", line 77, in
answer = input("Is this correct?(y/n)\n")[0]
File "", line 1, in
NameError: name 'y' is not defined

Expected/desired behavior

Entering in y or n (or q for quit) should work as that is what the prompt text instructs the user to do.

OS and Version?

macOS (Yosemite? El Capitan? Sierra?) macOS High Sierra

Versions

Mention any other details that might be useful

Using VSCode


Thanks! We'll be in touch soon.

KeyError: 'rewardActionId'

Hi,

While running personalizer.ipyb notebook, got following error.


KeyError Traceback (most recent call last)
in
8
9 # main iterations
---> 10 [count, rewards] = iterations(num_requests, lastModCheck, jsonTemplate)

in iterations(n, modelCheck, jsonFormat)
41
42 # compare personalization service recommendation with the simulated data to generate a reward value
---> 43 prediction = json.dumps(response.json()["rewardActionId"]).replace('"','')
44 reward = get_reward_from_simulated_data(name, weather, timeofday, prediction)
45

KeyError: 'rewardActionId'

Please suggest.
Thanks
Mahesh

Dependencies won't load to into this application and it fails at runtime.

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

trying to run the application

Any log messages given by the failure

missing nuget package references. Even when trying to restore them in via VS 2019 it won't work. neither with 2017

Expected/desired behavior

to work

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Windows 10, visual studio 2019 and 2017

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Nuget source doesn't exist

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I'm trying to run the ChatbotExample and can't build it because NuGet.Config is pointing to ../../nuget which doesn't exist.

Any log messages given by the failure

/Users/srozga/Desktop/cognitive-services-personalizer-samples/samples/ChatbotExample/LuisBot.csproj : error NU1101: Unable to find package Microsoft.Azure.CognitiveServices.Personalization. No packages exist with this id in source(s): nuget.org

Expected/desired behavior

Should work.

OS and Version?

macOS Mojave

Versions

dotnet sdk 2.2.300

Thanks!
-s

Missing node_modules\webpack\bin\webpack.js

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

git clone https://github.com/Azure-Samples/cognitive-services-personalizer-samples
cd samples/HttpRequestFeatures
  • Then I opened the sln file and tried to build the whole solution.
  • But something went wrong on line#31 in HttpRequestFeaturesExample.csproj.
  • I was told that some specific file was missing. I searched the project directory and I couldn't find it too.

Any log messages given by the failure

image

Severity	Code	Description	Project	File	Line	Suppression State
Error		Cannot find module 'D:\Microsoft\Learning\Azure\AzurePersonalizer\cognitive-services-personalizer-samples\samples\HttpRequestFeatures\node_modules\webpack\bin\webpack.js'	HttpRequestFeaturesExample	D:\Microsoft\Learning\Azure\AzurePersonalizer\cognitive-services-personalizer-samples\samples\HttpRequestFeatures\EXEC	1	
Error	MSB3073	The command "node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" exited with code 1.	HttpRequestFeaturesExample	D:\Microsoft\Learning\Azure\AzurePersonalizer\cognitive-services-personalizer-samples\samples\HttpRequestFeatures\HttpRequestFeaturesExample.csproj	31	

Expected/desired behavior

I wonder where to find the file or how can I solve the problem.

OS and Version?

Windows 10.

Versions

image

Mention any other details that might be useful


Thanks! We'll be in touch soon.

There are dependencies missing for the chat bot example via the bot samples repo regarding LUIS-Reminders.json

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [x ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

When following the installation instructions for the chatbot example there are missing dependencies in the bot samples repo. Specifically the LUIS-Reminder.json.

Click on the Choose File and select LUIS-Reminders.json from the botbuilder-samples/samples/csharp_dotnetcore/12.nlp-with-luis/CognitiveModels folder.

Any log messages given by the failure

Expected/desired behavior

The example to work

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Offline evaluation is not showing optimum policy or anything

Hi,

Thanks for amazing Personalization service.
I am trying out Personalizer.ipynb , ecerything worked well but Offline evaluation is not showing anything when date range is given. I think it is supposed to show optimum policy.

Please suggest if I am missing something.

Thanks
Mahesh

Comment for instantiating client has wrong service

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

Comment says "# Instantiate a LUIS client". This should be say a Personalizer client

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.