I developed a recommender system using Matrix Factorization in Python. The ratings are in the range [1-5]. It works very well. This system is made for client advisors rather than clients themselves. Hence, the system recommends some products to the client advisor and then this one decides which products he's gonna recommend to his client.
In my application I want to have 2 additional buttons: relevant, irrelevant. Thus, for each recommendation the client advisor would press the button irrelevant if the recommendation is not good but its rating is high and he would press the button relevant if the recommendation is good but its rating is low.
The problem is that I can't figure how to update the ratings when one of the buttons is pressed. Please give me some idea about how to handle that feature. I insist on having only two buttons (relevant and irrelevant), the client advisor can't modify the rating himself.
Thank you very much.
Based on your comment above, I would manipulate the Number of times they purchased the product field. You need to basically transform the Number of times they purchased the product field into an implicit rating field. I would maybe scale the product rating system to 1-5. If they press the don't like the product button, the rating is a 1, if they press the like the product button, they get a 5. If they have bought the product frequently, it's a 5, otherwise it starts at a 3 on the first purchase and scales up to a 4 then 5, based on your data. If they have never bought the product AND have never rated the product, it's a null value, so won't contribute to ratings.
Related
Currently I am working on a E-Commerce Website, I Need to Implement these Offers on add to cart as the Products are being added, the Price should be discounted according to the Offer Provided.
The Offers are as follows:
Offer 1- Buy one get one free,
Offer 2- 50% off on more than 2000 buy,
Offer 3- 30% off on selecting more than 2 products to add to the cart.
I have made the E commerce website everything is fine but just don't know how to use the Offer logic and though tried multiple things but nothing worked as it should.
The offer must automatically work on cart as soon as the products are added and before payment gateway the discount should work and get deducted.
idk how are your models and what's exactly your problem but let's say price_all is a field in your cart model and count is how many products of one type are in cart.
for Offer 1 easily you can divide price(this is not price_all this field belongs to your product) into 2.or you can just double the count and I think the second way is better.
for Offer 2 you can add an if to check if price_all is more than 2000 or not.
for offer 3 you can check if the count is more than 2 or not easily.
you can check all of this in save() function of your model or you can make a presave signal for that.if you don't know how just read the docs.
The Django application I'm developing for a taxi company has following modules,
Trips
Customers (who buy products)
Vehicles
Drivers
Each trip is constituted by selecting a customer, a vehicle and a driver along with a few other parameters.
I will be recording every single trip, and the revenue generated because of it.
I also would like to assign this revenue generated to the individual customer who took the vehicle, and to the vehicle which was used in the trip. Since I would like to have a deeper understanding of the customer's spending and the revenue generated by vehicles.
I need to have an Accounts Receivables and a Received statement for each trip.
Is there a standard way to achieve this? I believe a similar approach is used in typical e-commerce systems. Any and every help is appreciated.
Edit 1
I believe I can record all the transactions in this way. Since a trip already contains vehicles and customers, probably I can derive the respective transactions to them.
I very new to Python, so anything would be very helpful. I need to be able to make adjustments to the price and stock of three inventory items if the user inputs code 3. The user should be able to select the product they want to
I'm trying to integrate balanced payments API into my work. I've looked at Docs and other concerned forums also but didn't get clear my doubts.
I understand the flow of this though, but due to some method names i'm getting confused.
e.g. customer.
https://docs.balancedpayments.com/1.0/overview/getting-started/#charge-a-credit-card
What have I tried till now:(in Python)
I've created a dummy/Test bank and it's working fine.
bank_account = balanced.BankAccount(...) but I dont know how much could I debit from this or first do I have to credit into.
after this I created a card and then I created a customer customer = balanced.Customer().save()
and then associated the card with the customer customer.add_card('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC3AiMy0KEP1PhwnffMk32RF')
but how is this statement working?
customer.add_bank_account('/v1/bank_accounts/BA24Zc2jo1moflunJDxKrCrB')
I'm slightly confused with this customer word.
Could somebody please explain this from beginning in simple steps.
Customers are objects that represent businesses or people within your marketplace (i.e. buyers and sellers). In this revision of the API, funding instruments (e.g. credit cards, bank accounts) must be associated to a specific customer object before you can initiate any transactions.
The method you listed:
customer.add_bank_account('/v1/bank_accounts/BA24Zc2jo1moflunJDxKrCrB')
Is associating the bank account to the customer object that you created.
You specify the amount for a debit (charge) or credit (payout). The limit depends on a number of factors (e.g. credit limit, available funds, transaction limits)
I am new to Satchmo -- picked it up because I needed payment processing for site subscriptions and physical product.
My site will have two classes of users: paid subscribers and free users. Both can order a
physical product. Paid subscribers get an automatic discount on all orders.
I don't see a configuration for this in the admin. (Discount looks like it would apply to all users. If I'm missing something here, let me know.)
So what's the best place to automatically override the price depending on the user class? The displayed price should show up, say, 10% less for subscribers everywhere in the site, not just at the checkout.
Thanks.
Checkout the tiered pricing module