Category : data-modeling

I watned to predict the income using text data(description) as a predictor. This is how my dataframe looks like: c_description 641 fierce roman commander marcus vinicius become … 645 melancholy poet reflect three woman love lose … 644 disturb blanche dubois move sister new orleans… 643 lonely woman recall first love thirteen year p… 642 ..

Read more

In this example schema below I basically want to require the reporting_person in the incident object is a person object referenced in the people array. Is this possible? { "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "person": { "type": "object", "properties": { "person_id": { "type": "integer" }, "first_name": { "type": "string" } } }, "incident": { "type": "object", ..

Read more

I built to code in random-forest regression. and I found the best parameter. i want to use it to fitting my model. This is my code: best_params = {"n_estimators" : 800, "min_samples_split": 5 , "min_samples_leaf":1, "max_features":’sqrt’, "max_depth" :90, "bootstrap": False} rf_random = RandomForestRegressor(params) # Fit the random search model rf_random.fit(X_train, y_train) y_pred = rf_random.predict(X_test) I ..

Read more