Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7184785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:16:22+00:00 2026-05-28T18:16:22+00:00

Sorry in advance if I’m not explaining this correctly. I want to know if

  • 0

Sorry in advance if I’m not explaining this correctly. I want to know if there are algorithms to weight various factors in a decision process.

I was reading programming collective intelligence and there’s a chapter where you build a search engine and use various factors to rank webpages(pagerank, frequency of words, distance of words, words in title, etc..). Basically in their example code they have all the factors as functions in a class and then use this command to score them:

weights=[(1.0,self.locationscore(rows)), 
                 (1.0,self.frequencyscore(rows)), 
                 (1.0,self.distancescore(rows)),
                 (1.0,self.pagerankscore(rows)),
                 (1.0,self.linktextscore(rows, wordids))]  

Each factor is ranked equally(1.0), but I was wondering if there was a way to dynamically make different factors weight differently without manually setting the weights? In the book, they go on to use neural networks to study users clicks but the above weights remain the same.

I get a feeling there’s a non-static way to do this, but not sure what. Any suggestions of how to approach this would be great.

Thanks in advance

Note: if you would like the example code from the book, its http://examples.oreilly.com/9780596529321/ and the chapter I’m referring to is chapter 4. Also if I’m not explaining anything correctly please let me know and I’ll update my question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:16:23+00:00Added an answer on May 28, 2026 at 6:16 pm

    First define your utility function: How to estimate if one solution in better then the other. One common utility for the problem you described is recall and precision and the F measure.

    Also, create an evaluation set: Build a set of queries, and a set of expected answers for these queries.

    Now, you can tune your weighting functions with any AI optimizing algorithm, such as hill climbing or genetic algorithms. In these optimization algorithms, your variables are the weights for each algorithm, and you try to optimize your utility functions.

    Note: If your search engine API allows some explicit feedback, you might also use the same method to keep tuning on the fly: after enough users had indicated what is the “correct” answers for queries, you can add it to your evaluation set, and run your tuning algorithm again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry in advance everyone for this question as I know the cascading select boxes
Sorry in advance as this question is similar (but not the same!) to others.
Sorry in advance if this not 'SO'-ish enough--- I have a tech writing friend
I'm not exactly sure how to word this question, so sorry in advance for
I know this may sound extremely nooby, so sorry in advance but I am
Sorry in advance if there's already an answer for this somewhere in the world,
Sorry in advance for this being such a beginner question. Here are the steps
sorry in advance for any orthographic mistakes (english is not my first language). I
I am new to JPA and JBoss, so sorry in advance if this is
Sorry if this is too simple, but thanks in advance for helping. This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.