Skip to content

Commit

Permalink
version number changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jan 8, 2020
1 parent cf28a75 commit 5596456
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion birdspotter.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: birdspotter
Version: 0.1.2a1
Version: 0.1.3a1
Summary: A package to measure the influence and botness of twitter users, from twitter dumps
Home-page: https://github.com/behavioral-ds/BirdSpotter
Author: Rohit Ram
Expand Down
6 changes: 1 addition & 5 deletions build/lib/birdspotter/BirdSpotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,6 @@ def getInfluenceScores(self, time_decay = -0.000068, alpha = None, beta = 1.0):
self.p = p/(alpha if alpha else 1)
inf, m = influence(p, alpha)
g['influence ('+str(alpha)+','+str(time_decay)+','+str(beta)+')'] = pd.Series(inf)
print(p, np.argmax(self.p, axis=0))
print(g['user_id'][list(np.argmax(self.p, axis=0))].values)
g['expected_parent'] = pd.Series(g['user_id'][list(np.argmax(self.p, axis=0))].values)
cascades.append(g)
if not self.quiet:
Expand Down Expand Up @@ -539,11 +537,9 @@ def getLabeledUsers(self, out=None):
self.featureDataframe.to_csv(out)
return self.featureDataframe

def __composeData(self):
def getCascadesDataFrame(self):
"""Adds botness column and standard influence to the cascade dataframe."""
tmp1 = self.featureDataframe[['botness','influence (None,-6.8e-05,1.0)']]
# del self.cascadeDataframe['influence (None,-6.8e-05,1.0)']
# del self.cascadeDataframe['botness']
self.cascadeDataframe.drop([c for c in ['botness','influence (None,-6.8e-05,1.0)'] if c in self.cascadeDataframe.columns], axis=1, inplace=True)
self.cascadeDataframe = self.cascadeDataframe.join(tmp, on='user_id', lsuffix='l')
return self.cascadeDataframe
Binary file removed dist/birdspotter-0.1.2a1.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added dist/birdspotter-0.1.3a1.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'birdspotter',
packages = ['birdspotter'],
version = '0.1.2a1',
version = '0.1.3a1',
license = 'MIT',
description = 'A package to measure the influence and botness of twitter users, from twitter dumps',
author = 'Rohit Ram',
Expand Down

0 comments on commit 5596456

Please sign in to comment.