This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#based on https://github.com/datitran/raccoon_dataset/blob/master/generate_tfrecord.py | |
from __future__ import division | |
from __future__ import print_function | |
from __future__ import absolute_import | |
import os | |
import io | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Setup script for object_detection with TF2.0.""" | |
import os | |
from setuptools import find_packages | |
from setuptools import setup | |
REQUIRED_PACKAGES = [ | |
# Required for apache-beam with PY3 | |
'avro-python3', | |
'apache-beam', | |
'pillow', |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#single variable linear regression model | |
class linear_model(): | |
def __init__(self,lr=0.0001,epochs=1000): | |
self.m = 0 | |
self.c = 0 | |
self.lr = lr | |
self.epochs = epochs | |
def train(self,x,y): | |
n = float(len(x)) | |
for i in range(self.epochs): |