Original code:
import numpy as np from sklearn import linear_model class MarketingCosts: # param marketing_expenditure List, expenditure for each previous campaign # param units_sold List, the number of units sold for each previous campaign # param desired_units_sold, Integer, target number of units to sell in the new campaign # Returns Integer, required amount of money to be invested @staticmethod def desired_marketing_expenditure(marketing_expenditure, units_sold, desired_units_sold): return None print(MarketingCosts.desired_marketing_expenditure( [300000, 200000, 400000, 300000, 100000], [60000, 50000, 90000, 80000, 30000], 60000))
Dashboard
Start Trial
Sign In
Home
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.