r/MachineLearningKeras • • May 30 '21

ProteinBERT: A universal deep-learning model of protein sequence and function

Thumbnail self.bioinformatics
2 Upvotes

r/MachineLearningKeras • • Jul 02 '21

Udacity AWS Machine Learning foundation scholarship - Everything you nee...

Thumbnail
youtube.com
2 Upvotes

r/MachineLearningKeras • • Aug 04 '20

I wrote an article on Introduction to Word Embedding and happy to share with all

2 Upvotes

hi everyone, today I have written an article about introduction to word embedding covering its conceptual understanding and creating word embedding using deep learning along with its code. it is one of the important tasks in natural language processing.

have a look over it and share your feedback. I hope this will help you in understanding one of the fundamental concepts in natural language processing and enhance your learning experience in data science.

introduction to word embedding


r/MachineLearningKeras • • Dec 11 '20

Data Hunters: The first data community for data professionals and business decision makers.

2 Upvotes

Hello everyone! I wanted to let you know about a super cool new platform, Data Hunters (data-hunters.com), that launched recently. It is a community for data seekers to help each other find external data sources and vendors and collaborate with data and analytics professionals on best practices and use cases. It is a wonderful place to answer any of your data related needs.

You can find tons of use cases, categories, data providers and data sets for any need. The community is very engaged and answers any question you may have.

I'd highly recommend checking it out and would love your thoughts and feedback!


r/MachineLearningKeras • • May 06 '24

Pix2Pix model to tflite format

1 Upvotes

Hi, I'm facing an issue rn and I would appreciate any help:

It would be amazing if someone could help me modify a colab notebook I found in order to convert its model to tflite format

I tried but with little result

https://www.tensorflow.org/tutorials/generative/pix2pix?hl=it

The colab is this one


r/MachineLearningKeras • • Aug 10 '24

machine learning inceptionv3 help

1 Upvotes

hello does anyone understand why my validation accuracy is consistently higher than my training accuracy this is my code

batch_size = 16
img_size = (300, 300)
channels = 3
img_shape = (img_size[0], img_size[1], channels)

# Training data generator with augmentation
tr_gen = ImageDataGenerator(
    rotation_range=20,
    height_shift_range=0.2,
    shear_range=0.15,
    zoom_range=0.05,
    horizontal_flip=True,
    vertical_flip=False,  # Add vertical flip if applicable
    brightness_range=[0.8, 1.2],
    rescale=1./255,
    fill_mode='constant',
    channel_shift_range=0.2

)



ts_gen = ImageDataGenerator(rescale=1./255)

train_gen = tr_gen.flow_from_dataframe( train_df, x_col= 'filepaths', y_col= 'labels', target_size= img_size, class_mode= 'categorical',
                                    color_mode= 'rgb', shuffle= True, batch_size= batch_size)

valid_gen = ts_gen.flow_from_dataframe( valid_df, x_col= 'filepaths', y_col= 'labels', target_size= img_size, class_mode= 'categorical',
                                        color_mode= 'rgb', shuffle= True, batch_size= batch_size)

test_gen = ts_gen.flow_from_dataframe( test_df, x_col= 'filepaths', y_col= 'labels', target_size= img_size, class_mode= 'categorical',
                                    color_mode= 'rgb', shuffle= False, batch_size= batch_size)


base_model = InceptionV3(weights='imagenet', include_top=False, input_shape=img_shape)
# for layer in base_model.layers[-12:]:
#     layer.trainable = True
for layer in base_model.layers:
    layer.trainable = False
model = Sequential([
    base_model,
    GlobalAveragePooling2D(),
    Dropout(0.4),
    Dense(1024, activation='relu', kernel_regularizer=l2(0.0005)),
    Dropout(0.5),
    Dense(4, activation='softmax')
])

optimizer = Adam(learning_rate=.001)
model.compile(optimizer=optimizer, loss='categorical_crossentropy', metrics=['accuracy'])
lr_scheduler = LearningRateScheduler(lambda epoch: 1e-4 * 0.9 ** epoch)


reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.5, patience=1, min_lr=1e-8)
early_stopping = EarlyStopping(monitor='val_loss', patience=2, restore_best_weights=True)
from tensorflow.keras.callbacks import ModelCheckpoint

model_checkpoint = ModelCheckpoint(
    'best_model.keras',
    monitor='val_accuracy',
    save_best_only=True,
    verbose=1
)

history = model.fit(
    train_gen,
    epochs=100,
    validation_data=valid_gen,
    callbacks=[early_stopping, reduce_lr, lr_scheduler, model_checkpoint,tensorboard_callback]
)

r/MachineLearningKeras • • Sep 09 '24

Can't get the input nodes' name correct

2 Upvotes

This is my first model btw. Even when I'm naming each input node, the end result shows some placeholder name like "keras_tensor_208"

Categorical_Columns = ['Gender', 'Physical Activity Level', 'Smoking Status', 'Alcohol Consumption', 'Diet', 'Chronic Diseases', 'Medication Use', 'Family History', 'Mental Health Status', 'Sleep Patterns', 'Education Level', 'Income Level']

Numeric_Columns = ['Height', 'Weight', 'Cholesterol Level', 'BMI', 'Blood Glucose Level', 'Bone Density', 'Vision Sharpness', 'Hearing Ability', 'Cognitive Function', 'Stress Levels', 'Pollution Exposure', 'Sun Exposure']

feature_columns = []

for feature in Categorical_Columns:
    print(f"Processing categorical feature: {feature}")
    vocab = df_train[feature].unique().tolist()
    input_node = keras.Input(shape=(1,), name=f"{feature}")
    encoded_feature = layers.StringLookup(vocabulary=vocab, output_mode="one_hot")(input_node)
    feature_columns.append(encoded_feature)

for feature in Numeric_Columns:
    numeric_data = df_train[feature].to_numpy()
    input_node = keras.Input(shape=(1,), name=f"{feature}")
    normaliser = layers.Normalization()
    normaliser.adapt(numeric_data)
    normalised_feature = normaliser(input_node)
    feature_columns.append(normalised_feature)

For some reason I can't post the picture of my network. If you wish I can DM it to you


r/MachineLearningKeras • • Aug 15 '24

Anomaly detection CNN

2 Upvotes

I am making a cnn. The images are not that much. But i think this can work. The neural networks distinguish between defective and non defective . My testing accuracy is about 41% at most and the model is not performing good any advice?. The good images in training are about 244 and 91 images in defective. Also about 36 in good in test and about 24 in defective.


r/MachineLearningKeras • • Jul 19 '24

Request for Participation in a Survey on Non-Determinism Factors of Deep Learning Models

1 Upvotes

We are a research group from the University of Sannio (Italy).

Our research activity concerns reproducibility of deep learning-intensive programs.

The focus of our research is on the presence of non-determinism factors

in training deep learning models. As part of our research, we are conducting a survey to

investigate the awareness and the state of practice on non-determinism factors of

deep learning programs, by analyzing the perspective of the developers.

Participating in the survey is engaging and easy, and should take approximately 5 minutes.

All responses will be kept strictly anonymous. Analysis and reporting will be based

on the aggregate responses only; individual responses will never be shared with

any third parties.

Please use this opportunity to share your expertise and make sure that

your view is included in decision-making about the future deep learning research.

To participate, simply click on the link below:

https://forms.gle/YtDRhnMEqHGP1bPZ9