Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SAR model to accept integer type for userId and itemId #2281

Closed
wants to merge 2 commits into from

Conversation

dciborow
Copy link
Contributor

@dciborow dciborow commented Sep 7, 2024

Fixes #2274

Update SAR model to accept userId and itemId as integer types (LongType).

  • SAR.scala

    • Update calculateUserItemAffinities method to handle userId and itemId as LongType.
    • Update calculateItemItemSimilarity method to handle userId and itemId as LongType.
  • test_ranking.py

    • Add test case test_adapter_evaluator_sar_with_long to verify userId and itemId as LongType.
  • Smart Adaptive Recommendations.md

    • Update documentation to reflect that userId and itemId can be of LongType.

For more details, open the Copilot Workspace session.

Fixes #2274

Update SAR model to accept `userId` and `itemId` as integer types (`LongType`).

* **SAR.scala**
  - Update `calculateUserItemAffinities` method to handle `userId` and `itemId` as `LongType`.
  - Update `calculateItemItemSimilarity` method to handle `userId` and `itemId` as `LongType`.

* **test_ranking.py**
  - Add test case `test_adapter_evaluator_sar_with_long` to verify `userId` and `itemId` as `LongType`.

* **Smart Adaptive Recommendations.md**
  - Update documentation to reflect that `userId` and `itemId` can be of `LongType`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/SynapseML/issues/2274?shareId=XXXX-XXXX-XXXX-XXXX).
@acrolinxatmsft1
Copy link

Acrolinx Scorecards

A minimum total score of 80 is required.

Select the total score link to review all feedback on clarity, consistency, tone, brand, terms, spelling, grammar, readability, and inclusive language. You should fix all spelling errors regardless of your total score. Fixing spelling errors helps maintain customer trust in overall content quality.

Article Total score
(Required: 80)
Words + phrases
(Brand, terms)
Correctness
(Spelling, grammar)
Clarity
(Readability)
docs/Explore Algorithms/Other Algorithms/Smart Adaptive Recommendations.md 78 100 65 70

More information about Acrolinx

@dciborow dciborow changed the title Fix SAR model to accept integer type for userId and itemId fix: SAR model to accept integer type for userId and itemId Sep 7, 2024
…tion/SAR.scala` file

Delete `core/src/test/python/synapsemltest/recommendation/test_ranking.py` file

Delete `docs/Explore Algorithms/Other Algorithms/Smart Adaptive Recommendations.md` file
@dciborow dciborow closed this Sep 7, 2024
@dciborow dciborow deleted the dciborow/fix-sar-integer-type branch September 7, 2024 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] SAR Model Fails When userCol and itemCol are of Integer Type
2 participants