Category : prediction

I tried running several regression models with instagram Reach the dataset I have is a csv file which contains 1194s postdata from random users reach (Y), like(X1), comment(X2), engagement(X3 = X1+X2) ,followers (X4) Beside, I found that one of the variable which followers X4 has some time delayed ,in other words the numbers in followers ..

Read more

I used timeseries dataframe with 9 variables, trying to predict 1 of them. I followed the official tutorial and got the final model. But I don’t know how to view the predicted values. #Split the data column_indices = {name: i for i, name in enumerate(df.columns)} n = len(df) train_data = df[0:int(n*0.7)] val_data = df[int(n*0.7):int(n*0.9)] test_data ..

Read more

I am following the tutorial here: https://www.analyticsvidhya.com/blog/2019/08/comprehensive-guide-language-model-nlp-python-code/#h2_5 to create a Language model. I am following the bit about the N-gram Language model. This is the completed code: from nltk.corpus import reuters from nltk import bigrams, trigrams from collections import Counter, defaultdict # Create a placeholder for model model = defaultdict(lambda: defaultdict(lambda: 0)) # Count frequency ..

Read more