def writeUserDistributionUsingItemsetClustering(
     minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation
 ):
     spotsFile = "%s/%s_%s" % (spotsFIFolder, minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation)
     SpotsAnalysis.writeUserDistributionInSpots(
         spotsFile,
         filteredUserIterator(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation, fullRecord=True),
     )
 def run():
     #        Spots.writeUsingItemsetClustering(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation, minCalculatedSupport=minSupport, initialNumberofLocationsInSpot=initialNumberofLocationsInSpot, extraMinSupport=5)
     #        Spots.writeUsingRadius(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation, radiusInMiles)
     #        Spots.writeUserDistributionUsingItemsetClustering(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation)
     #        Spots.writeUserDistributionUsingRadius(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation, radiusInMiles)
     print SpotsAnalysis.getStats(
         "%s/%s_%s" % (spotsFIFolder, minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation),
         filteredUserIterator(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation, fullRecord=True),
     )
 def writeUsingRadius(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation, radiusInMiles):
     spotsFile = "%s/%s_%s_%s" % (
         spotsRadiusFolder,
         minLocationsTheUserHasCheckedin,
         minUniqueUsersCheckedInTheLocation,
         radiusInMiles,
     )
     SpotsAnalysis.writeSpotsToFile(
         iterateSpotsUsingRadius(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation, radiusInMiles),
         spotsFile,
     )
 def writeUserDistributionUsingRadius(
     minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation, radiusInMiles
 ):
     spotsFile = "%s/%s_%s_%s" % (
         spotsRadiusFolder,
         minLocationsTheUserHasCheckedin,
         minUniqueUsersCheckedInTheLocation,
         radiusInMiles,
     )
     SpotsAnalysis.writeUserDistributionInSpots(
         spotsFile,
         filteredUserIterator(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation, fullRecord=True),
     )
 def writeUsingItemsetClustering(
     minLocationsTheUserHasCheckedin,
     minUniqueUsersCheckedInTheLocation,
     minCalculatedSupport,
     initialNumberofLocationsInSpot,
     **kwargs
 ):
     spotsFile = "%s/%s_%s" % (spotsFIFolder, minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation)
     SpotsAnalysis.writeSpotsToFile(
         iterateSpotsByItemsetClustering(
             minLocationsTheUserHasCheckedin,
             minUniqueUsersCheckedInTheLocation,
             minCalculatedSupport,
             initialNumberofLocationsInSpot,
             **kwargs
         ),
         spotsFile,
     )
 def getStats(): return Spots.getStats(UserGraphSpots.getSpotsFile(), filteredUserIterator(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation,  fullRecord = True))
 @staticmethod
 def writeUserDistribution(): Spots.writeUserDistributionInSpots(UserGraphSpots.getSpotsFile(), filteredUserIterator(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation,  fullRecord = True))
 @staticmethod
 def writeToFile(): Spots.writeSpotsToFile(UserGraphSpots.iterateSpots(), UserGraphSpots.getSpotsFile())
 @staticmethod
 def writeUserDistribution(): Spots.assignUserToSpots(RadiusSpots.getSpotsFile(), filteredUserIterator(minLocationsTheUserHasCheckedin, minUniqueUsersCheckedInTheLocation,  fullRecord = True))
 @staticmethod
 def writeToFile(): 
     print 'Writing', '%s'%RadiusSpots.getSpotsFile()
     Spots.writeSpotsToFile(RadiusSpots.iterateSpots(), RadiusSpots.getSpotsFile())
 def writeToFile(): Spots.writeSpotsToFile(FrequentItemSpots.iterateSpots(), FrequentItemSpots.getSpotsFile())
 @staticmethod